Opened 18 years ago

Last modified 3 years ago

#114 new task

GUI - Style Skinning Support

Reported by: Stuart Walpole Owned by:
Priority: Nice to Have Milestone: Backlog
Component: Core engine Keywords:
Cc: Patch:

Description (last modified by Stan)

[This is pretty low priority, since we can live with using a generic GUI appearance for all civilisations, at least for Part I.]

  • Problem: Currently styles are set when the game is loaded, and then cannot be modified. Since the style system is in place, it'd be good if we could use this to allow changing of controls to a different appearance (in particular, a different texture set to "skin" the GUI depending on which civilisation is currently in play).
  • Solution: When the style property of a control is changed at runtime, the control's properties are updated to the value of the new style. Also, when the properties of a style are changed at runtime, controls using that style which still have that property are updated to the new property.

Change History (6)

comment:1 by Stuart Walpole, 18 years ago

Owner: set to gustav

comment:2 by Stuart Walpole, 18 years ago

Summary: Style Skinning SupportGUI - Style Skinning Support

comment:3 by Erik Johansson, 15 years ago

Owner: Gee removed

comment:4 by (none), 14 years ago

Milestone: Advanced Playability Demo

Milestone Advanced Playability Demo deleted

comment:5 by Andrew, 14 years ago

Milestone: Backlog

comment:6 by Stan, 3 years ago

Description: modified (diff)

In r24270

Properly set and get GUI objects' style attribute in JS
This fixes tab buttons not playing sounds when pressed.
Original patch by: Stan
Amended patch reviewed by: Stan
Differential Revision: ​https://code.wildfiregames.com/D3109[[br]]

Hyrule has the civ specific UI even without this patch ^ so maybe code could be extracted from there.

Last edited 3 years ago by Stan (previous) (diff)
Note: See TracTickets for help on using tickets.