#regstate == 1 gui file

This is where our experts try to teach you the very flexible modding system for our previous release - SOW Gettysburg and its add-ons. It's powerful, but dangerous. Post your tips and your questions.
Post Reply
User avatar
RebBugler
Reactions:
Posts: 4252
Joined: Sun Aug 03, 2008 12:51 am
Location: Ouachita Mountains, Arkansas

#regstate == 1 gui file

Post by RebBugler »

1) What does this do or alter?

2) Can it be created or modded?

3)I think this has to do with buttons being called up, highlighted while command is happening, TC for instance. But if this isn't it, how can I mod this. Presently only two buttons work, normal and mouse over...I need the action/highlighted one to work as I add new commands to the toolbar.

4) Also, ADukes...I fixed the gfx (updated the pre-release one), and think I have the gui fixed. It was just changing the button call up numbers in the middle of the page for arty ammo types...Right?
Last edited by RebBugler on Sun May 09, 2010 10:17 am, edited 1 time in total.
Bugles & Flags Gettysburg - Toolbar, Flags, Scenarios, and More...
ADukes
Reactions:
Posts: 862
Joined: Mon Nov 26, 2007 10:38 pm

Re: #regstate == 1

Post by ADukes »

1) The regstate variable stores the movement state of a regiment.
#regstate == 1 -> regiment has stoped

2) No.

4) Check your PMs!
Davinci
Reactions:
Posts: 3034
Joined: Wed Jul 02, 2008 12:53 pm

Re: #regstate == 1 gui file

Post by Davinci »

A Blast post from the past!

Reb - Did you find out any information about the regstate command?

I'm trying to add a button on the toolbar - the button is added, and it works, but doesn't show the hi-lighted state like the default buttons.

..........................................
EDIT Post
..........................................

Disregard - I don't think that this command is what I'm looking for!..... From the Manual

#regstate This is the movement state of a regiment. #regstate == 0 means march, #regstate == 1 means stop,
#regstate == 2 means load, #regstate == 3 means ram, #regstate == 4 means shoot, #regstate == 5 means run,
#regstate == 6 means charge, #regstate == 7 means melee, #regstate == 8 means takecover, #regstate == 9 means
Fallback, #regstate == 10 means retreat, #regstate == 11 means advance, #regstate == 12 means routed. [gui.csv]

davinci
Last edited by Davinci on Mon Jan 26, 2015 6:40 am, edited 1 time in total.
The only true logic is that, there is no true logic!
User avatar
RebBugler
Reactions:
Posts: 4252
Joined: Sun Aug 03, 2008 12:51 am
Location: Ouachita Mountains, Arkansas

Re: #regstate == 1 gui file

Post by RebBugler »

Regarding your initial question, Regstate is hardcoded, so new buttons can't be modded to reflect that highlighted (active) state.
Bugles & Flags Gettysburg - Toolbar, Flags, Scenarios, and More...
Davinci
Reactions:
Posts: 3034
Joined: Wed Jul 02, 2008 12:53 pm

Re: #regstate == 1 gui file

Post by Davinci »

Regarding your initial question, Regstate is hardcoded, so new buttons can't be modded to reflect that highlighted (active) state.
Hey, True the regstate doesn't seem to be designed for this, but shouldn't a true command work as a substitute?

So, what command means or equals true ?

I'm trying everything to bypass the code!

davinci
The only true logic is that, there is no true logic!
Davinci
Reactions:
Posts: 3034
Joined: Wed Jul 02, 2008 12:53 pm

Re: #regstate == 1 gui file

Post by Davinci »

Reb ...

I don't know if this will help you out with this since its been four years since you were dealing with this. I have been working on this for the past six-seven hours trying to figure something out.

I was trying t get the F-Key to hi-light on the Toolbar, nothing special since it already shows up as a Status Icon in the toolbar screen.

So, I tied both of them together by having the game draw a ( wooden F-Key ) first, and then when I press the ( F-Key ) the game will draw a ( Blue- F-Key ) over the brown one.

Once, disabled it turns off the ( Blue ) one, and leaves the brown one showing.

I haven't tried it, but maybe a work around is to first assign more Status_Icons , and then have them hi-light the other keys that are added .
The attachment tb1_2015-01-26.jpg is no longer available
davinci
Attachments
tb1_2015-01-26.jpg
tb1_2015-01-26.jpg (57.06 KiB) Viewed 320 times
Last edited by Davinci on Mon Jan 26, 2015 10:49 am, edited 1 time in total.
The only true logic is that, there is no true logic!
Post Reply