I want the gold window to always be shown in the top right hand corner. I'm pretty new still and I don't really get scripting but I was trying to use:
in it's own spot above Main and adding:
in Scene_Map. This makes it go in the top left corner and I want it in the top right. I know I'm probably making some really dumb and obvious mistake, but I have barely any idea what I'm doing anyway. I also suppose that it doesn't seriously affect anything if the window's in the wrong corner...but I'd really apreciate some help.:please:
Code:
#==============================================================================
#Gold Window
#==============================================================================
class Window_Goldl < Window_Base
#--------------------------------------------------------------------------
def initialize
super(0, 0, 160, 64)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = $defaultfonttype
self.contents.font.size = $defaultfontsize
refresh
end
#--------------------------------------------------------------------------
def refresh
rect = Rect.new(x, y, self.width - 32, 32)
self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
bitmap = RPG::Cache.icon($goldicon)
opacity = self.contents.font.color == normal_color ? 255 : 128
self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24), opacity)
cx = contents.text_size($data_system.words.gold).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, $data_system.words.gold, 2)
end
end
Code:
# Make gold window
@gold_window = Window_Gold.new