mirror of
https://github.com/tstellar/bygfoot.git
synced 2024-12-17 02:39:14 +01:00
Automatic loan repayment.
This commit is contained in:
parent
654e42c844
commit
a6fd7b7cc7
@ -1306,6 +1306,12 @@ void
|
|||||||
on_automatic_loan_repayment_activate (GtkMenuItem *menuitem,
|
on_automatic_loan_repayment_activate (GtkMenuItem *menuitem,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
|
if(sett_int("int_opt_disable_finances"))
|
||||||
|
{
|
||||||
|
game_gui_print_message(_("Finances are disabled in this country definition."));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(current_user.debt == 0)
|
if(current_user.debt == 0)
|
||||||
{
|
{
|
||||||
game_gui_print_message(_("You are not in debt."));
|
game_gui_print_message(_("You are not in debt."));
|
||||||
|
@ -1497,7 +1497,7 @@ treeview_create_finances(const User* user)
|
|||||||
misc_print_grouped_int(user->alr_weekly_installment, buf);
|
misc_print_grouped_int(user->alr_weekly_installment, buf);
|
||||||
sprintf(buf2, "<span foreground='%s'>%s</span>",
|
sprintf(buf2, "<span foreground='%s'>%s</span>",
|
||||||
const_app("string_treeview_finances_expenses_fg"), buf);
|
const_app("string_treeview_finances_expenses_fg"), buf);
|
||||||
sprintf(buf, _("(from week %d)"), user->alr_start_week);
|
sprintf(buf, _("(starting week %d)"), user->alr_start_week);
|
||||||
gtk_list_store_append(ls, &iter);
|
gtk_list_store_append(ls, &iter);
|
||||||
gtk_list_store_set(ls, &iter, 0, buf, 1, "", 2, buf2, -1);
|
gtk_list_store_set(ls, &iter, 0, buf, 1, "", 2, buf2, -1);
|
||||||
}
|
}
|
||||||
|
@ -341,7 +341,7 @@ int_finance_payback_weeks 15
|
|||||||
# lower and upper limit for the current interest
|
# lower and upper limit for the current interest
|
||||||
# and the change step between weeks
|
# and the change step between weeks
|
||||||
float_finance_interest_lower 500
|
float_finance_interest_lower 500
|
||||||
float_finance_interest_upper 6000
|
float_finance_interest_upper 5000
|
||||||
float_finance_interest_step 250
|
float_finance_interest_step 250
|
||||||
|
|
||||||
# live game scale configuration
|
# live game scale configuration
|
||||||
|
Loading…
Reference in New Issue
Block a user