Jump to content

[REL] Custom GUI Widget System


AriosJentu

Recommended Posts

Posted
15 hours ago, ℓιgнт said:

No gridlists?

No, but you can make scroll pane with image blocks, look at my old PM system, or Phone script:

Spoiler

xw1gU9B.png

4v1lmtQ.png

Bcs this style doesn't need gridlists, what look like CEGUI gridlists :D

  • 2 months later...
Posted

Update: added functions for changing minimal and maximal size, and step size for EditNumberScroller, because I forgot about them.

If you have any questions about this system, how to work with it, how to use it - you can ask me here.

Posted

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.

Posted
1 hour ago, Ea7gign said:

How can i change Windows color and Label font size ?

To change windows color you can use changing color schematic - window:setColorSheme(colorScheme)

To change label font size, use label:setFont(font_directory, new_font_size)

Posted

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

Posted

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

Posted

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

  • 3 weeks later...
Posted

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.

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...