• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Native functions for F10 dialog

Status
Not open for further replies.
Level 15
Joined
Aug 7, 2013
Messages
1,338
Hi,

Is there any way we can access the functions/interface that allows creating dialogs like those in the F10 menu, e.g. features sliders or option ticks (music, video, etc.)?

Or any way to choose the dimensions of our dialogs?

If this is done in F10 menu, there must be a way to create these dialogs, right?
 
Level 15
Joined
Aug 7, 2013
Messages
1,338
How does Blizzard draw the F10 dialog?

Surely they have to have a function that does something like:

native DialogAddTickBox takes dialog whichDialog, boolean state returns nothing

"Puts a tick box in the dialog. If the state is true, then it is ticked. False it is an empty box."

What are the .fdf files?
 
How does Blizzard draw the F10 dialog?

Surely they have to have a function that does something like:

native DialogAddTickBox takes dialog whichDialog, boolean state returns nothing

"Puts a tick box in the dialog. If the state is true, then it is ticked. False it is an empty box."

What are the .fdf files?

The game most certainly isn't written in JASS.
 
Level 15
Joined
Aug 7, 2013
Messages
1,338
I've made GUI with Java before, so are you saying they are using something like that except in C or whatever language the game is written in?

And then is there no way to call those functions?
 
I've made GUI with Java before, so are you saying they are using something like that except in C or whatever language the game is written in?

And then is there no way to call those functions?

You made a GUI using a framework like swing, written in Java. Blizzard wrote their own GUI framework in C++ and extend some of the components to JASS.

Without custom natives, there's no way to call C++ functions, no.
 
I've made GUI with Java before, so are you saying they are using something like that except in C or whatever language the game is written in?

And then is there no way to call those functions?

Yes and yes. They wrote the game in C++. While they made the campaigns and maps using JASS/GUI, they only exposed us to whatever they considered useful or necessary to complete their maps. They extended it quite a bit with frozen throne, but we never got very many features to interact with the interface dynamically. ;(

As for fdf files, those are inside the MPQ's. They list frame definitions, such as where things are placed on the screen. For more info, just open the mpq and start reading them (and mess around with them, if you're brave enough. Just keep a backup). But they are loaded on wc3 startup, so you can't import them for specific maps. It would require a custom mod.

EDIT: Cokemonkey beat me to the post.
 
Yes and yes. They wrote the game in C++. While they made the campaigns and maps using JASS/GUI, they only exposed us to whatever they considered useful or necessary to complete their maps. They extended it quite a bit with frozen throne, but we never got very many features to interact with the interface dynamically. ;(

Off topic, but related: Many of the API's provided in common.j are incomplete because blizzard just didn't need some functionality or didn't get around to implementation. For example, it's impossible to delete trackables IIRC.
 
Status
Not open for further replies.
Top