Jump to content

[REL] Custom GUI Widget System


AriosJentu

Recommended Posts

  • Scripting Moderators

WOW! Based on cegui? I was doing the same thing 4 years ago, but failed. So I start dx gui project. Yours are great and have good looking. Keep working! Best custom gui.

  • Like 2
  • Thanks 1
Link to comment
  • 2 months later...

Update:

- Added function to get window parts. There is function to get window frame (window:getFrame()) and window header image - part, where located title and close button (window:getHeader()), and for tab panel you now can get tab button (tab:getTabHeader([string/gui-element] TabIndex)).

- Added functions to create custom labels. It looks like default labels, but it connected with window color scheme

- Fixed events, now you can add every event of object with its method - obj:addEvent(). If event doesn't exists, you can create it using default function addEvent(...), and then add event using object method.

For more information look at the example.lua. In updated file all parent windows replaced with methods of getting frame of its window, replaced all addEventHandler's to method addEvent of object, and added example for labels.

  • Like 1
Link to comment

Update:

- Added 2 new themes - Purple Light and Purple Dark

- Added new widget - CustomDialog. Created events onCustomDialogAccept and onCustomDialogCancel for them.

- Now you doesn't need to call addEvent("eventName", bool) for events, created in this resource, because I added it in the end of win.lua.

- Added events when player click on close button - onCustomWindowClose, and when player choose value in combobox - onCustomComboBoxSelectItem.

- Look at the example. Now to change theme in DemoWidgets, select item in first ComboBox, called "Select Theme...".

Screenshots:

UiJAp44.jpg

10SM2iK.jpg

t82CxbQ.jpg

  • Like 1
Link to comment

Update

- Replaced CustomDialog arguments - now you can create Custom Dialogs with random count of buttons, just put their titles in table. Replaced events onCustomDialogAccept and onCustomDialogCancel to single event onCustomDialogClick with one function argument - button title. Look at the example file.

Screenshots:

QJQlJHc.png

  • Like 1
Link to comment

Update

- Added Loading Circles. You can set them progress. Creation only with coordinates, because size is static.

- Added Side Bar for Window Widget. Now you can put colored bar on background for your window. Its not dynamically changing color for another widgets, just background. For EditBoxes added new method CustomEdit:putOnSide([bool] IsOnSide?) for setting EditBox's Edges colored.

Screenshots

raGfgML.png

WrUwtUD.png

Link to comment
  • 3 weeks later...

Update:

- Now for all widgets do not want to use functions Window:getFrame and Window:addElement(s). Just put as parent window widget (look at the example, or documentation)

- In function GuiStaticImage.create now you can use as parent argument window widget.

- Fixed bugs with relative objects and with side bar of window.

- Added more information in documentation.

  • Like 2
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...