Page 1 of 1

[LIB MOD 0.14] Style & Shortcut v0.0.8

Posted: Sun Sep 11, 2016 2:12 am
by aubergine18
Define LuaGuiElement style prototypes and keyboard shortcuts... in style!

Example of frame style definition (compare with vanilla):

Image
Button style example
Links:

Re: [LIB MOD 0.14] Style v0.0.2 (alpha)

Posted: Mon Sep 12, 2016 12:42 am
by aubergine18
v0.0.2 released - adds support for scroll pane styles

Re: [LIB MOD 0.14] Style v0.0.3 (alpha)

Posted: Mon Sep 12, 2016 11:00 pm
by aubergine18
v0.0.3 released - adds support for checkboxes and more :)

Re: [LIB MOD 0.14] Style v0.0.4 (alpha)

Posted: Tue Sep 13, 2016 10:09 am
by aubergine18
v0.0.4 released - adds `shortcut` helper for defining `custom-input` prototypes; keyboard shortcuts that trigger custom named events.

Code: Select all

shortcut 'Shift + Control + P` { -- automatically converts to uppercase
  event = 'my-event-name';
  scope = 'self'; -- limit event scope to my mod
}

Re: [LIB MOD 0.14] Style v0.0.5 (beta)

Posted: Tue Sep 13, 2016 2:31 pm
by aubergine18
v0.0.5 released - adds `style.textfield` for defining `textfield_style` prototypes.

As the API is nearly complete, with only a couple more features to add, the mod has now entered beta testing phase. Any feedback most welcome!

Re: [LIB MOD 0.14] Style v0.0.6

Posted: Wed Sep 14, 2016 6:11 pm
by aubergine18
v0.0.6 released - The largest update yet, and the mod is now considered production ready!

Add: table.style - define table_style prototypes (#5)
Add: shortcut now logs all custom-input prototypes to game log file (#15)
Add: shortcut.defined - check if a key combination is already defined
Improve: <Color> properties auto-parse shortform notations such as hex color codes (#17)
Improve: shortcut now accepts a preference list of keys (#13)
Improve: Lots of code simplified and improved (#14)
Improve: .api property (value true) added to APIs: (#16)
- style.api, sound.api, image.api and shortcut.api
- enables mods to check that valid API globals are present (eg. not overwritten by some other mod)
Improve: Massive improvements to documentation, including:
- Version numbers now clearly stated for all features
- Added some missing links and content, for example style.parse (this will be getting renamed soon)
- Improved formatting of bullet lists
- Fixed some issues with sidebar navigation
Fixed: sound.random no longer breaks if passed an array (#12)

Re: [LIB MOD 0.14] Style & Shortcut v0.0.7

Posted: Fri Sep 16, 2016 1:12 am
by aubergine18
v0.0.7 released:

* Add: `style.radiobutton` - create `radiobutton_style` prototypes (#18)
* Add: `.scalable` - all types now have a `.scalable` property because this (#28)
* `true` = element will scale automatically when game window resizes
* `false` = element will remain fixed size
* Add: `style.expand` - new name for `style.parse` (#20)
* Improve: Significantly smaller mod filesize (removed git history from zip, duh!)
* Deprecate: `style.parse` (will be removed in v1.0), use `style.expand` instead (#25)

Re: [LIB MOD 0.14] Style & Shortcut v0.0.8

Posted: Sat Sep 17, 2016 5:30 pm
by aubergine18
v0.0.8 released:

* Add: style.font - define new sizes for existing fonts, or add custom fonts
* Add: image.animation - for use with entity prototypes
* Add: .priority and .tint properties now on all image types
* Improve: Documentation home page improved