![]() |
Resizing Game Window Width (0.5/5) - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: Source Code Development (https://mirage-engine.uk/forums/forumdisplay.php?fid=51) +----- Forum: Mirage Source 4 (Visual Basic 6) (https://mirage-engine.uk/forums/forumdisplay.php?fid=44) +------ Forum: Tutorials (https://mirage-engine.uk/forums/forumdisplay.php?fid=13) +------ Thread: Resizing Game Window Width (0.5/5) (/showthread.php?tid=2565) |
Resizing Game Window Width (0.5/5) - Rebjorn - 20-02-2009 This super-noob tutorial made by a VB6 first-timer (me) will most likely help someone who's even more noobish changing the Games Window Width. So let's get started (no flame please, just move along if you are like this: :evil: at this tutorial). Currently, no interface changes the Window Width, but I'll make that tomorrow. Right now, all you have to do, to change the windows width is going to modConstants and changing two variables, instead of seeking around in different sub-files. Which I think is quite useful. Difficulty: 0.5 / 5 WIDTH_NOR is the normal width without the mapeditor open. WIDTH_ADM is the broader (or thinner if you like) width with the mapeditor open. :: Client :: Open modConstants, and insert in top Code: ' Window Width Open modGameEditors, and find: Code: Public Sub MapEditorInit() then, find: Code: .Width = Replace the number there is by default with: Code: WIDTH_ADM Stay in modGameEditors, and find: Code: Public Sub MapEditorCancel() then, find: Code: .Width = Replace the number there is by default with: Code: WIDTH_NOR Open frmMirage, and find: Code: frmMirage.Width = Replace the number there is by default with: Code: WIDTH_NOR Re: Resizing Game Window Width (0.5/5) - Rebjorn - 20-02-2009 Not going to post UI to this anyway as it's a Constant and can't be changed within the game. The usefullness of this tutorial is not worth the extra time it will take to be able to change the size in-game. Have fun, Rebjorn. |