bright-gpu-74537
11/12/2020, 2:23 PMbored-sandwich-20283
11/12/2020, 2:23 PMbright-gpu-74537
11/12/2020, 2:24 PMbright-gpu-74537
11/12/2020, 2:26 PMbright-gpu-74537
11/12/2020, 2:26 PMbored-sandwich-20283
11/12/2020, 2:26 PMbright-gpu-74537
11/12/2020, 2:27 PMbright-gpu-74537
11/12/2020, 2:28 PMbored-sandwich-20283
11/12/2020, 2:46 PMbright-gpu-74537
11/12/2020, 2:47 PMbored-sandwich-20283
11/12/2020, 2:59 PMhaxe
var colA_Val = 1;
var colB_Val = 0.99;
var colC_Val = 1;
var normal = (1 + 0.99 + 1) /3 # 0.99666....
var colA = colA_Val * (width/colNum) / normal;
var colB = colB_Val * (width/colNum) / normal;
var colC = colC_Val * (width/colNum) / normal;
#if parent width is 300px
colA = 1 * (300/3) / 0.99666 = 100.335
colB = 0.99 * (300/3) / 0.99666 = 99,331
colC = 1 * (300/3) / 0.99666 = 100.335
100.335 + 100.335 + 99,331 = ca 300.001 // the 001 is just me not caring about all the desimals
100 % on all would give a norm of 1
#(1 + 1 + 1) / 3 = 1
and multiplying that with 300/3 will give you 100 px on eachbright-gpu-74537
11/12/2020, 3:01 PMmost-caravan-45834
11/12/2020, 4:48 PMmost-caravan-45834
11/12/2020, 6:18 PMbright-gpu-74537
11/12/2020, 6:42 PMmost-caravan-45834
11/12/2020, 7:28 PMmost-caravan-45834
11/12/2020, 7:29 PMbright-gpu-74537
11/12/2020, 7:29 PMbright-gpu-74537
11/13/2020, 9:35 AMbright-gpu-74537
11/13/2020, 9:35 AMbright-gpu-74537
11/13/2020, 9:37 AMxml
<label id="label1" />
<label id="label2" />
<label id="label3" />
<label id="label4" />
<label id="label5" style="color: #FF00FF;font-size:16px;" />bright-gpu-74537
11/13/2020, 9:37 AMhaxe
label1.text = "Normal boring text";
label2.htmlText = "Normal boring html text";
label3.htmlText = "this is some text <font color='#FFAAAA'>that will <font color='#AAFFAA'>be</font> formatted <font color='#AAAAFF'>in</font> various different</font> ways";
label4.htmlText = "this is some text <font color='red'>that will <font color='green'>be</font> formatted <font color='blue'>in</font> various different</font> ways";
label5.htmlText = "this is some text <font color='red'>that will <font color='green'>be</font> formatted <font color='blue'>in</font> various different</font> ways";able-action-74275
11/13/2020, 1:58 PMbright-gpu-74537
11/13/2020, 2:01 PMable-action-74275
11/13/2020, 2:03 PMbright-gpu-74537
11/13/2020, 2:04 PMable-action-74275
11/13/2020, 2:04 PMbright-gpu-74537
11/13/2020, 2:04 PMmost-caravan-45834
11/13/2020, 4:36 PMxml
<listview id="animationList" width="200" height="150" selectedIndex="0">
<data>
</data>
</listview>
<hbox>
<button id="add-animation" text="+ Animation" />
<button id="rename-animation" text="Rename" allowInteraction="${animationList.itemCount == 0}" />
<button id="delete-animation" text="- Animation" allowInteraction="${animationList.itemCount == 0}" />
</hbox>bright-gpu-74537
11/13/2020, 4:39 PM