• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

FdfCreatorMap

Status
Not open for further replies.
WIP
SomeTime ago I had the Idea for an ingame UI Maker in which one has a simple UI which creates UI from a limited set of templates with editable content. This UI would have a preview and generate a fdf File at the end.
The map attached does that, though it is unfinished/unpolished and the source is a mess (beware if you read it).
Even in it unfinished state it is already able to create UI-Fdfs. The map was created in V1.31 makes it useable in Warcraft 3 V1.31 and higher.
Pic8 cuted.jpg
Currently it has templates to create Frames of types: Slider, Scrollbar (Slider), EditBox, TextArea, Checkbox, PopupMenu, Text, Box, Icon, IconButton, TextButton.

As it writes fdf it can also read fdf, but it fails to read many fdf not generated by itself.
Read Panel.jpg Write Panel.jpg
This map writes the resulting fdf into an Editbox which Text you copy into a textFile of your choice.
Next to the fdf editbox there are 2 further ones which are vjass/Lua templates to create the frame and it contains some basic event/triggers one probably uses for that frame.

Pic6.jpg Pic7.jpg
The reading process is alike, you copy paste your fdf into the reading editbox and press the Load button.

Reading & Generation of fdf is limited to one RootFrame.

This approach, as warcraft 3 Map, has some serious downside (internal for writing the tool) one has to hack it together to fit into the creation/editability of the FrameNatives. Which limits/complicates the possible feature as well.
WIP


V0.45)
All Preview-Frames are now children of unseeable frames that manage the logical connection. This removes some problemes when a Frame had to be replaced to preview some changes like FontSize/BorderSize/Inset/Mirror changes.
Though Text requires special handling now and relative positing to a Text is previewed wrong right now.​
Can now set inset for Icons from -0.1 to 0.1. With inset and Mirrored combiniations one can rotate an Icon by 90 180 or 270 degree.

V0.46)
Preview: Text Frames without Size work correctly as relative Point.
The Indicator can be shown again.
Removed the Big box over the editFrame, There is now a seperate box for the bottom Part.
Mouseclicks in the FrameList are computed faster.
Reduced max FontSize 0.3 -> 0.1. Sizes beyond 0.1 are kinda useless and to blurry.

V0.47)
The FrameList glows Blue when one should select a Frame in it.
Renamed Move to MoveTL.
Added MoveBR which sets Points2 instead of Point1 with BR.
Added a close Button to the Image selection.
Can add the RootFrame's Name as Prefix to all FrameNames when generating the fdf (this is also respected in the resulting code).
Removed the Label Texts from SetPoint

0.48)
Move by Mouse is now more accurate.
Move By Mouse is Limited to 4:3 Screen.
Can Hide/Show Frames in the preview. Added a Show+ Button to show current selected and all his offspring.
Added more AlphaOptions for Highlight (though they seem to be useless).
Icon(Button) show their image in the FrameList tooltip.
Can convert Icon <-> Box (Mostly for wrong reading detection).
Improved BoxType detection.
0 counts as false for bool input.
Hides Allies&Quest Button. Moved Menu/Log Button somewhere else
Can now create independent HighlightFrames, though their preview does not work.
Bars are now 100% filled instead of 50%.
Fixed bugs with Highlight for IconButtons.
Fixed a bunch of Error messages when reading fdf triggered by failing to update the FrameList.
Fixed adding TextAreas crashing the Game (happened from version 0.45 to this version)

0.49)
Updated Move By Mouse (Replaced FrameGrid by a limited simple World2Screen Mouse Pos)

0.49a)
Fix: Move By Mouse for Reforged.
Fix: Image setting in Reforged, I expected SkinManagerGetLocalPath to work like GetLocalizedString giving back the key, if no value was found.

0.50)
does now detect text of any TextButton
Added BlendAll for IconButtons
Can now Undo the last done Field change (crtl+z)
(Make sure that no Frame has focus while pressing that)​
0.51/0.52)
Fixed a bug in the generated jass code with Sliders
The preview will now pos itself to the max Top Left.
The editor control to the top right.
Removed options controlling x/y/Layer of the preview
 

Attachments

  • FdfCreatorMap - 0.4.w3x
    386 KB · Views: 23
  • Loaded TimerDialog.jpg
    Loaded TimerDialog.jpg
    187.7 KB · Views: 225
  • Pic2.jpg
    Pic2.jpg
    221.5 KB · Views: 165
  • Pic4.jpg
    Pic4.jpg
    256 KB · Views: 198
  • FdfCreatorMap - 0.45.w3x
    396.9 KB · Views: 71
  • FdfCreator - 0.41.w3x
    395.5 KB · Views: 65
  • FdfCreatorMap - 0.46.w3x
    394.9 KB · Views: 62
  • FdfCreatorMap - 0.47.w3x
    396.8 KB · Views: 25
  • FdfCreatorMap - 0.49.w3x
    396.5 KB · Views: 24
  • FdfCreatorMap - 0.49a.w3x
    396.9 KB · Views: 22
  • FdfCreatorMap - 0.50.w3x
    397.5 KB · Views: 70
  • FdfCreatorMap - 0.52.w3x
    396.7 KB · Views: 29
Last edited:
Status
Not open for further replies.
Top