top of page

User Interface Tools

Engine System Update - 2

I will divide this into two parts

  1. Things I did Until now

  2. What is next?

1. Things I did Until now

  • I finished the basic functionality for creating and using the UI item by creating the class for the item "panel" and "progress bar" this week.

Following is the example of a Lua file for item panel

LuaPanel.PNG
  • I got the progress bar class working as well,

    • User has to set the float number in order to fill the progress bar​

 "setPercentage(float& i_f) const"

Asset Builder

  • The way my asset builder working currently is I first read the UI item file and calculate the vertices, indices and color then write them down to a binary file.

Item Initialization

  • I want to use the binary file that I wrote and use the current existing geometry class to initialize but here is where I am stuck currently.

  • So I want to initialize the geometry by my self as I wrote the binary format of it and when the user calls panel.initialize(path) and passes the Lua file path that they wrote the item in, I read the data and initialize the geometry. But while trying to initialize geometry I realize that we do it with Handle and the only way to initialize is by calling smanager.load which will call their default load function instead of the one that is inside my panel class that I want to do it with.

Here is my panel class

panelH.PNG

How can I solve this?

  • .​Can I find a way to add another custom load function inside "cmanager.inl" so that I can just get the handle assigned to geometry and the I initialize geometry bypassing four pieces of data? I think this will be a bad fix though.

  • Did I make a wrong decision by creating my own asset builder for initialization geometry in my own way?

  • Should I roll back and ley users create their geometry and assign it to my panel class?

    • But then I can't have my Lua version of the item as shown earlier on this page, and let users write their own geometry file that brings up more issues that makes me roll back good simple Lua usability of my interface!​

  • If none of the above then The Final solution would be to Add my own UiGeometry class!

2. ​Next?

  • Find a solution for the geometry initialization problem and finishing the interface.​

  • Add standard values for specifying the position and more polishing on UI items class.

  • Add more Lua error checking

bottom of page