Hello,
First of all, thanks for your work.
I have been building a bunch of pages and HUD, and I would like to easily manage the visual style across them through common modular elements (components, included in widgets, included in UI and HUD). Ideally with components being the only elements using natives types provided by your library (in order to avoid tight coupling but, not the topic here.
I have reach the conclusion to build a templating system, currently it is pre-processed through a python script before being written in the ressources/ folder of my mods.
Additionally, it would requires some update of the HyHUI web app.
Here is a first sample idea, need refinement:
<!--@widget: faction-entry
@id: W-FACTION-01
@description: Faction list entry with reputation bar
@uses: component/image, component/label, component/progress-bar
-->
<div id="{{$id}}" class="widget-faction-entry" data-state="{{$state|default}}" data-standing="{{$standing|neutral}}" style="layout-mode: Left;">
<!-- Faction Icon -->
<div class="faction-icon">
{{@component/image:src=$factionIcon,width=48,height=48}}
</div>
<!-- Faction Info -->
<div class="faction-info" style="layout-mode: Top; flex-weight: 1;">
{{@component/label-body,content=$factionName}}
{{@component/label-caption,color=$standingColor,content=$standingName}}
<!-- Reputation Bar -->
<div class="reputation-bar-container">
{{@component/progress-bar:value=$reputation,max=$reputationMax,height=8}}
<label class="reputation-text" data-style="tiny">{{$reputationText}}</label>
</div>
</div>
</div>
Next step for this kind of tool I have in mind is to either:
Regards
Hello,
First of all, thanks for your work.
I have been building a bunch of pages and HUD, and I would like to easily manage the visual style across them through common modular elements (components, included in widgets, included in UI and HUD). Ideally with components being the only elements using natives types provided by your library (in order to avoid tight coupling but, not the topic here.
I have reach the conclusion to build a templating system, currently it is pre-processed through a python script before being written in the ressources/ folder of my mods.
Additionally, it would requires some update of the HyHUI web app.
Here is a first sample idea, need refinement:
Next step for this kind of tool I have in mind is to either:
Regards