1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#==============================================================================
# ** Window_Gold
#------------------------------------------------------------------------------
# This window displays amount of gold.
#==============================================================================
class Window_Gold < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, 160, 96)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
$währung1 = "Ilum"
$währung2 = "Minos"
if $game_variables[1] == 0 then
$währung_nr1 = $währung1
$währung_nr2 = $währung2
$geldwährung = $game_variables[2]
elsif $game_variables[1] == 1 then
$währung_nr1 = $währung2
$währung_nr2 = $währung1
$geldwährung = $game_variables[3]
end
self.contents.clear
#cx = contents.text_size($data_system.words.gold).width
cx = contents.text_size($währung_nr1).width
cy = contents.text_size($währung_nr1).width
self.contents.font.color = normal_color
self.contents.draw_text(4, 0, 120-cx-2, 32, $game_party.gold.to_s, 2)
self.contents.font.color = system_color
self.contents.draw_text(124-cx, 0, cx, 32, $währung_nr1, 2)
self.contents.font.color = normal_color
self.contents.draw_text(4, 0, 120-cy-2, 96, $geldwährung.to_s, 2)
self.contents.font.color = system_color
self.contents.draw_text(124-cy, 0, cy, 96, $währung_nr2, 2)
end
end |