summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-09-08 19:26:10 +0000
committerdarkvater <darkvater@openttd.org>2004-09-08 19:26:10 +0000
commit8308432cf945d7e27a2f3a9595ea9e3939260625 (patch)
tree5ac301cc5eb03f623ad04fe1ad5e4232dfd93967
parent157e90b49ff90a58bf9b375e71a61c32ee1c7e28 (diff)
downloadopenttd-8308432cf945d7e27a2f3a9595ea9e3939260625.tar.xz
(svn r187) -Feature: [1024044] Show max loan in finances window. (ledow)
-some type fixes in txt files
-rw-r--r--docs/Manual.txt2
-rw-r--r--docs/console.txt3
-rw-r--r--lang/english.txt3
-rw-r--r--player_gui.c11
4 files changed, 12 insertions, 7 deletions
diff --git a/docs/Manual.txt b/docs/Manual.txt
index bc70c6e2f..f545b384b 100644
--- a/docs/Manual.txt
+++ b/docs/Manual.txt
@@ -43,7 +43,7 @@ Difficulty Settings lets you configure settings that affect the difficulty of pl
Game Settings lets you set regional settings - currency, language, town names, etc. It also lets you select the resolution to run the game at, as well as the screenshot format to use.
-Configure Patches lets you select which patches to use in the game. This allows you ro set the game play to either original Transport Tycoon Deluxe compatible mode or a mode more like playing under TTD-Patch. Patches include building on slopes, longer bridges, longer trains, pre-signals, and TTD-Patch compatible handling of non-stop orders.
+Configure Patches lets you select which patches to use in the game. This allows you to set the game play to either original Transport Tycoon Deluxe compatible mode or a mode more like playing under TTD-Patch. Patches include building on slopes, longer bridges, longer trains, pre-signals, and TTD-Patch compatible handling of non-stop orders.
2.1 Gameplay
diff --git a/docs/console.txt b/docs/console.txt
index 8f23671e8..e2908f930 100644
--- a/docs/console.txt
+++ b/docs/console.txt
@@ -3,7 +3,7 @@ OPENTTD INGAME CONSOLE DOCUMENTATION
http://openttd.rulez.org/wiki2/index.php/OpenTTDDevBlackBook
for detailed information
-HOTKEY: BACKQUOTE (aka tile, the key left to "1")
+HOTKEY: BACKQUOTE (aka tilde, the key left to "1")
COMMANDS:
---------
@@ -52,4 +52,3 @@ printf "%s world" *temp_string
---------------------------------------------------
feel free to add more commands and use this in-game
console for your debugging / enhancements
-
diff --git a/lang/english.txt b/lang/english.txt
index 0d39fd950..2eb4f451f 100644
--- a/lang/english.txt
+++ b/lang/english.txt
@@ -1850,7 +1850,8 @@ STR_7023 :{CURRCOMPACT}
STR_7024 :{COMMA32}
STR_7025_OPERATING_PROFIT_GRAPH :{WHITE}Operating Profit Graph
STR_7026_BANK_BALANCE :{WHITE}Bank Balance
-STR_7027_LOAN :{WHITE}Loan
+STR_7027_LOAN :{WHITE}Loan
+STR_MAX_LOAN :{WHITE}Max Loan: {BLACK}{CURRENCY64}
STR_7028 :{BLACK}{CURRENCY64}
STR_7029_BORROW :{BLACK}Borrow {SKIP}{SKIP}{SKIP}{SKIP}{CURRENCY}
STR_702A_REPAY :{BLACK}Repay {SKIP}{SKIP}{SKIP}{SKIP}{CURRENCY}
diff --git a/player_gui.c b/player_gui.c
index 0fdf11695..2431a55b4 100644
--- a/player_gui.c
+++ b/player_gui.c
@@ -8,6 +8,7 @@
#include "player.h"
#include "command.h"
#include "vehicle.h"
+#include "economy.h"
static void DoShowPlayerFinances(int player, bool small);
@@ -18,7 +19,7 @@ static void DrawPlayerEconomyStats(Player *p, byte mode)
int64 (*tbl)[13], sum,cost;
StringID str;
- if (!(mode & 1)) {
+ if (!(mode & 1)) { // normal sized economics window (mode&1) is minimized status
/* draw categories */
DrawStringCenterUnderline(61, 15, STR_700F_EXPENDITURE_INCOME, 0);
for(i=0; i!=13; i++)
@@ -61,9 +62,13 @@ static void DrawPlayerEconomyStats(Player *p, byte mode)
} while (--j != 0);
y = 171;
- } else {
+
+ // draw max loan aligned to loan below (y += 10)
+ SET_DPARAM64(0, (uint64)_economy.max_loan);
+ DrawString(202, y+10, STR_MAX_LOAN, 0);
+
+ } else
y = 15;
- }
DrawString(2, y, STR_7026_BANK_BALANCE, 0);
SET_DPARAM64(0, p->money64);