<See images later in this topic (page 3) due to a small problem I had>
Got bored... so I decided to alter MSTS's GUI...
Moderator: Moderators
-
SteelixB
- Very Active Forum Member
- Posts: 1058
- Joined: Mon Dec 10, 2001 12:00 am
- Location: Newcastle
- Contact:
Got bored... so I decided to alter MSTS's GUI...
... And it works
.
<See images later in this topic (page 3) due to a small problem I had>
<See images later in this topic (page 3) due to a small problem I had>
Last edited by SteelixB on Mon Feb 02, 2004 9:36 pm, edited 1 time in total.
New username: RSBen
- martinhodgson
- Nowt to brag about, but still want to look flashy!
- Posts: 13922
- Joined: Sun Jan 20, 2002 12:00 am
- Location: Manchester
- Contact:
- Hymek
- Very Active Forum Member
- Posts: 2270
- Joined: Thu Jan 24, 2002 12:00 am
- Location: 38A/85D
- Contact:
WOW, looks amazing!
http://www.svr-dmu.org.uk - DMU Group WM
http://www.englishelectricpreservation.co.uk/ - English Electric Preservation
Producer of Rolling Stock for the UKTS community Since September 2002
http://www.englishelectricpreservation.co.uk/ - English Electric Preservation
Producer of Rolling Stock for the UKTS community Since September 2002
- jdjonny
- Very Active Forum Member
- Posts: 1150
- Joined: Wed May 22, 2002 12:00 am
- Location: "Sunny" Cornwall: peering into St. Blazey yard
- Contact:
does this mean we'll have funky new error boxes as well then? 
JDJonny
JDJonny
....bad link removed......
http://www.railpics.tk
http://www.railpicsvideos.tk
Sulzer is the way forwards. Big up spoons!
http://www.railpics.tk
http://www.railpicsvideos.tk
Sulzer is the way forwards. Big up spoons!
- petermakosch
- The Midland Mainline Man
- Posts: 3852
- Joined: Fri Nov 08, 2002 8:37 pm
- Location: Pleasantville, UK
- Contact:
-
SteelixB
- Very Active Forum Member
- Posts: 1058
- Joined: Mon Dec 10, 2001 12:00 am
- Location: Newcastle
- Contact:
I just had an idea! How about 'MSTS Themes' or something like that? someone could write a program (I could if no-one else wants to
) that can switch between themes, and the themes would be stored in another folder in the main MSTS folder. I think it would be a good idea, but the only probelm is, would anyone else be making any new GUIs for MSTS? 
Anyway, better get working on the other screens and controls etc.
Anyway, better get working on the other screens and controls etc.
Last edited by SteelixB on Sat Nov 01, 2003 11:59 pm, edited 1 time in total.
New username: RSBen
-
SteelixB
- Very Active Forum Member
- Posts: 1058
- Joined: Mon Dec 10, 2001 12:00 am
- Location: Newcastle
- Contact:
It's pretty straight forward. Just back to old .ace modifying in the GUI Folder. All the control (widget) .ace files are in the SHARED folder, and the screen .ace files are in the SCREENS folder (obviously). Once you've made your graphics replacing the old ones, it's just down to text editing to move them anywhere on the screen. To do this, open up any .dat file in the WIDGETS folder. In this case I modified the activity.dat file. There are quite a lot of comments to help you, though what I do is take a screenshot of the screen you want to modify, and make sure you're editing the right control by finding the top left corner of the control and match it to the TrGUI_Region_Area.
Here's what it looks like:
TrGUI_Region_Name ( activityscrtitle ) - This is the control's ID, used by MSTS
TrGUI_Region_Parent ( activity ) - This is the parent of it - in this case it is the 'activity' screen
TrGUI_Region_Area ( 363 20 425 46 ) - This is the X Y W H. X and Y are the location, W and H are the width and height of the control
TrGUI_Region_Cursor ( arrow_cur ) - This is the cursor displayed when you put your mouse over the control
TrGUI_Region_TextArea ( 0 0 420 46 ) - Not all controls will have this, this is the area of the control where the text is displayed, again it is the X Y W H. Make sure that the text area does not go over the area's border, or MSTS will get an error.
TrGUI_Region_Font ( 0 220 220 220 ) - The first number is the font, and the last 3 are the colours (R G B). go to the GUI fodler and open up gui_fnts.dat for a list of fonts.
TrGUI_Region_Shadow_Font ( 1 0 0 0 5 5 420 41 ) - Not for all controls, this is the shadow text that appears behind the orgional text. I think the first number is the font, the next 3 are the R G and B and the last 4 are the X Y W H of the shadow area.
TrGUI_Text_Pos ( "LCENTRE" ) - I think this gives the text 'left justification' and centres it vertically (UK spelling - I thought it was american
).
TrGUI_Region_Text ( 0 ) - Don't know
, possibly some sort of dummy text value so MSTS can change the text according to the language it's in.
Anyway, I hope this helps anyone wanting to make an improved GUI for MSTS
. (Is it just at my end, or are people getting 'php critical errors?')
Here's what it looks like:
Code: Select all
Skip ( ********* SCREEN TITLE ********* )
TrGUI_Region
(
TrGUI_Region_Name ( activityscrtitle )
TrGUI_Region_Parent ( activity )
TrGUI_Region_Area ( 363 20 425 46 )
TrGUI_Region_Cursor ( arrow_cur )
TrGUI_Region_TextArea ( 0 0 420 46 )
TrGUI_Region_Font ( 0 220 220 220 )
TrGUI_Region_Shadow_Font ( 1 0 0 0 5 5 420 41 )
TrGUI_Text_Pos ( "LCENTRE" )
TrGUI_Region_Text ( 0 )
)TrGUI_Region_Parent ( activity ) - This is the parent of it - in this case it is the 'activity' screen
TrGUI_Region_Area ( 363 20 425 46 ) - This is the X Y W H. X and Y are the location, W and H are the width and height of the control
TrGUI_Region_Cursor ( arrow_cur ) - This is the cursor displayed when you put your mouse over the control
TrGUI_Region_TextArea ( 0 0 420 46 ) - Not all controls will have this, this is the area of the control where the text is displayed, again it is the X Y W H. Make sure that the text area does not go over the area's border, or MSTS will get an error.
TrGUI_Region_Font ( 0 220 220 220 ) - The first number is the font, and the last 3 are the colours (R G B). go to the GUI fodler and open up gui_fnts.dat for a list of fonts.
TrGUI_Region_Shadow_Font ( 1 0 0 0 5 5 420 41 ) - Not for all controls, this is the shadow text that appears behind the orgional text. I think the first number is the font, the next 3 are the R G and B and the last 4 are the X Y W H of the shadow area.
TrGUI_Text_Pos ( "LCENTRE" ) - I think this gives the text 'left justification' and centres it vertically (UK spelling - I thought it was american
TrGUI_Region_Text ( 0 ) - Don't know
Anyway, I hope this helps anyone wanting to make an improved GUI for MSTS
Last edited by SteelixB on Sun Nov 02, 2003 12:35 am, edited 1 time in total.
New username: RSBen
-
SteelixB
- Very Active Forum Member
- Posts: 1058
- Joined: Mon Dec 10, 2001 12:00 am
- Location: Newcastle
- Contact:
forgot to mention, when you select 'explore route' a little green background appears on the right with text showing the current selected route. Well what could I do with that image if I have a blue background and have no need for it? well I used it as an overlay at the bottom right to cover up the activity description box and add an area for the 'details' button. The image automatically disappeares when you select an activity.
New username: RSBen