• Welcome to Battlezone Universe.
 

News:

Welcome to the BZU Archive dated December 24, 2009. Topics and posts are in read-only mode. Those with accounts will be able to login and browse anything the account had access granted to at the time. No changes to permissions will be made to be given access to particular content. If you have any questions, please reach out to squirrelof09/Rapazzini.

Main Menu

NotifyParent()

Started by Nielk1, June 21, 2008, 01:31:56 AM

Previous topic - Next topic

Nielk1

All of us CFG editors know this:
NotifyParent("Button::Press", "Quit");

Where when the event 'Press" as described by the 'Button' class occurs (this would be a button BTW), it sends the "Quit" message to the parent.

What other Class::Event combinations are there? I want to make it so mouseovering notifies the parent to change a text variable to display in a label. In short, you mouse over buttons and 1 spot tells you what they are.

EDIT:
NotifyParent("Button::Select", "Options");
works if the
Style();
includes
"RADIO"

Click on the image...

bigbadbogie

wasnt all that cfg stuff changed in pb4??

and i was just starting to learn it too :cry:
Others would merely say it was good humour.


My BZ2 mods:

QF2: Essence to a Thief - Development is underway.

Fleshstorm 2: The Harvest - Released on the 6th of November 2009. Got to www.bz2md.com for details.

QF Mod - My first mod, finished over a year ago. It can be found on BZ2MD.com

Nielk1

No, it was just expanded to make use of some new features. Most old code still works in it, except for the ammo/hull guages, those are a bit off in old CFGs (cause of the missing ammo and hull color groups).

Click on the image...

General BlackDragon

CFG things werent changed in pb4, only abilities added to change health and ammo bars to whatever u bloody want :)

Also, Yes radio only works wiht button:Select

I havn't experimented with other types, but perhaps rollover style and Button:Rollover? I doubt it'd work though.



*****General BlackDragon*****

bigbadbogie

which cfg do i need to edit to change hull and ammo??

is it bzgame_command or bzgame_weapon??
Others would merely say it was good humour.


My BZ2 mods:

QF2: Essence to a Thief - Development is underway.

Fleshstorm 2: The Harvest - Released on the 6th of November 2009. Got to www.bz2md.com for details.

QF Mod - My first mod, finished over a year ago. It can be found on BZ2MD.com

General BlackDragon

bzgame weapon from pb4.



*****General BlackDragon*****

bigbadbogie

All that one seems to do is change the numbers - how can I change the actual gauge??
Others would merely say it was good humour.


My BZ2 mods:

QF2: Essence to a Thief - Development is underway.

Fleshstorm 2: The Harvest - Released on the 6th of November 2009. Got to www.bz2md.com for details.

QF Mod - My first mod, finished over a year ago. It can be found on BZ2MD.com

Nielk1

#7
Something about creating a gauge with a certain name will make the normal one not show. H/O, lemme get my 2 interface tests.

EDIT:
Images link to 7z files.


Click on the image...

bigbadbogie

thankyou - that will definitely help
Others would merely say it was good humour.


My BZ2 mods:

QF2: Essence to a Thief - Development is underway.

Fleshstorm 2: The Harvest - Released on the 6th of November 2009. Got to www.bz2md.com for details.

QF Mod - My first mod, finished over a year ago. It can be found on BZ2MD.com

GSH

Checking the source code, here's the ones that can be generated within code.

Quote
NotifyParent("Button::Deselect");
NotifyParent("Button::Press");
NotifyParent("Button::Select");
NotifyParent("Control::Activate");
NotifyParent("Control::Deactivate");
NotifyParent("Control::FinishFadeIn");
NotifyParent("Control::FinishFadeOut");
NotifyParent("Control::NextTab");
NotifyParent("Control::PrevTab");
NotifyParent("Control::StartFadeIn");
NotifyParent("Control::StartFadeOut");
NotifyParent("Edit::Enter");
NotifyParent("ListBox::DblClick");
NotifyParent("ListBox::SelChange");
NotifyParent("Timer::TimeOut");

Not all of these may be executed for every control. Use at your own risk.

-- GSH

Nielk1

ooooo

Request more info on, Timer

Click on the image...

GSH

Scan the stock .cfg files. If it's not found in there, then it's never been tested in 8+ years. And therefore, probably quite buggy.

Nathan's rule of code: if it's not actively tested, it's probably buggy.

-- GSH

Nielk1

Like when I put a texture on the guage used for unit builds and it died at a certain %

Click on the image...

bigbadbogie

Quote from: Nielk1 on June 22, 2008, 06:49:11 PM
guage

Phew - I thought that I was the only one who spells it like that...
Others would merely say it was good humour.


My BZ2 mods:

QF2: Essence to a Thief - Development is underway.

Fleshstorm 2: The Harvest - Released on the 6th of November 2009. Got to www.bz2md.com for details.

QF Mod - My first mod, finished over a year ago. It can be found on BZ2MD.com

General BlackDragon




*****General BlackDragon*****