Post by strormer on May 21, 2021 17:10:46 GMT
I am continuing work on my custom template for Star Trek Attack Wing and I've run into an issue. There are a number of fields where I need to have users select one or more images from a picklist which will then appear together in a field. Since there is a large variety in the number of options I think this is better resolved with multiple choice images rather than a symbol font solution.
My issue comes with the alignment of the output. I have this appearing in multiple placements across different card styles. Each is a constrained space within which all selections must fit, some vertically stacked and others horizontally side-by-side. All my attempts to make the images output into the field change alignment have failed. I need them to center/v-center alignment, but I can't seem to get them to change from the top left orientation no matter what code I try. If, for example, I change the alignment to "middle center" it appears with the top left corner of the leftmost image placed at middle-center position and then moves right from there extending beyond the confines of the field area rather than shrinking to fit, rather than centering the line both vertically and horizontally and shrinking to fit within the allotted space which is my desired result.
Below is what I have so far with my alignment experiments removed for easy reading. Any insight is greatly appreciated.
Game File
And the Style file:
My issue comes with the alignment of the output. I have this appearing in multiple placements across different card styles. Each is a constrained space within which all selections must fit, some vertically stacked and others horizontally side-by-side. All my attempts to make the images output into the field change alignment have failed. I need them to center/v-center alignment, but I can't seem to get them to change from the top left orientation no matter what code I try. If, for example, I change the alignment to "middle center" it appears with the top left corner of the leftmost image placed at middle-center position and then moves right from there extending beyond the confines of the field area rather than shrinking to fit, rather than centering the line both vertically and horizontally and shrinking to fit within the allotted space which is my desired result.
Below is what I have so far with my alignment experiments removed for easy reading. Any insight is greatly appreciated.
Game File
card field:
type: multiple choice
name: restrictions
choice: Primary Arc
choice: Secondary Arc
choice: Attack Minimum
choice: Defense Minimum
choice: Hull Minimum
choice: Shield Minimum
choice: OP Banned
choice:
name: Special Restriction
line below: true
choice: Federation Ship
choice: Romulan Ship
choice: Klingon Ship
choice: Dominion Ship
choice: Bajoran Ship
choice: Borg Ship
choice: Ferengi Ship
choice: Independent Ship
choice: Kazon Ship
choice: Mirror Universe Ship
choice: Q Continuum Ship
choice: Undine Ship
choice: Vulcan Ship
choice:
name: Xindi Ship
line below: true
choice: Andorian Ship
choice: Breen Ship
choice: Cardassian Ship
choice: Gorn Ship
choice: Hirogen Ship
choice: Iconian Ship
choice: Krenim Ship
choice: Malon Ship
choice: Maquis Ship
choice: Nausicaan Ship
choice: Orion Ship
choice: Reman Ship
choice: Son'a Ship
choice: Suliban Ship
choice: Tellarite Ship
choice: Tholian Ship
choice: Terran Ship
choice:
name: Vidiian Ship
line below: true
choice: Klingon-Cardassian Alliance Ship
choice: Terran Empire Ship
choice:
name: Terran Resistance Ship
line below: true
choice: Proton Ship
choice:
name: Intergalactic Evil Ship
line below: true
choice: Federation Captain
choice: Romulan Captain
choice: Klingon Captain
choice: Dominion Captain
choice: Bajoran Captain
choice: Borg Captain
choice: Ferengi Captain
choice: Independent Captain
choice: Kazon Captain
choice: Mirror Universe Captain
choice: Q Continuum Captain
choice: Undine Captain
choice: Vulcan Captain
choice:
name: Xindi Captain
line below: true
choice: Andorian Captain
choice: Breen Captain
choice: Cardassian Captain
choice: Gorn Captain
choice: Hirogen Captain
choice: Iconian Captain
choice: Krenim Captain
choice: Malon Captain
choice: Maquis Captain
choice: Nausicaan Captain
choice: Orion Captain
choice: Reman Captain
choice: Son'a Captain
choice: Suliban Captain
choice: Tellarite Captain
choice: Tholian Captain
choice: Terran Captain
choice:
name: Vidiian Captain
line below: true
choice: Klingon-Cardassian Alliance Captain
choice: Terran Empire Captain
choice:
name: Terran Resistance Captain
line below: true
choice: Proton Captain
choice: Intergalactic Evil Captain
default: "None"
show statistics: false
And the Style file:
restrictions:
left: 10
top: 285
width: 45
height: 152
z index: 6
alignment: ????
direction: vertical
spacing: 0
popup style: in place
render style: image list
choice images:
Primary Arc: res_arc_primary.png
Secondary Arc: res_arc_auxiliary.png
Attack Minimum: res_min_atk_X.png
Defense Minimum: res_min_def_X.png
Hull Minimum: res_min_hull_X.png
Shield Minimum: res_min_shi_X.png
OP Banned: res_special_ban.png
Special Restriction: res_special_ship.png
Federation Ship: res_ship_Fed.png
Romulan Ship: res_ship_Romulan.png
Klingon Ship: res_ship_Klingon.png
Dominion Ship: res_ship_Dominion.png
Bajoran Ship: res_ship_Bajoran.png
Borg Ship: res_ship_Borg.png
Ferengi Ship: res_ship_Ferengi.png
Independent Ship: res_ship_Indy.png
Kazon Ship: res_ship_Kazon.png
Mirror Universe Ship: res_ship_Mirror.png
Q Continuum Ship: res_ship_Q.png
Undine Ship: res_ship_Undine.png
Vulcan Ship: res_ship_Vulcan.png
Xindi Ship: res_ship_Xindi.png
Andorian Ship: res_ship_Andorian.png
Breen Ship: res_ship_Breen.png
Cardassian Ship: res_ship_Cardassian.png
Gorn Ship: res_ship_Gorn.png
Hirogen Ship: res_ship_Hirogen.png
Iconian Ship: res_ship_Iconian.png
Krenim Ship: res_ship_Krenim.png
Malon Ship: res_ship_Malon.png
Maquis Ship: res_ship_Maquis.png
Nausicaan Ship: res_ship_Nausicaan.png
Orion Ship: res_ship_Orion.png
Reman Ship: res_ship_Reman.png
Son'a Ship: res_ship_Sona.png
Suliban Ship: res_ship_Suliban.png
Tellarite Ship: res_ship_Tellarite.png
Tholian Ship: res_ship_Tholian.png
Terran Ship: res_ship_Earth.png
Vidiian Ship: res_ship_Vidiian.png
Klingon-Cardassian Alliance Ship: res_ship_KCA.png
Terran Empire Ship: res_ship_TEmpire.png
Terran Resistance Ship: res_ship_TResist.png
Proton Ship: res_ship_Proton.png
Intergalactic Evil Ship: res_ship_Chaotica.png
Federation Captain: res_cap_Fed.png
Romulan Captain: res_cap_Romulan.png
Klingon Captain: res_cap_Klingon.png
Dominion Captain: res_cap_Dominion.png
Bajoran Captain: res_cap_Bajoran.png
Borg Captain: res_cap_Borg.png
Ferengi Captain: res_cap_Ferengi.png
Independent Captain: res_cap_Indy.png
Kazon Captain: res_cap_Kazon.png
Mirror Universe Captain: res_cap_Mirror.png
Q Continuum Captain: res_cap_Q.png
Undine Captain: res_cap_Undine.png
Vulcan Captain: res_cap_Vulcan.png
Xindi Captain: res_cap_Xindi.png
Andorian Captain: res_cap_Andorian.png
Breen Captain: res_cap_Breen.png
Cardassian Captain: res_cap_Cardassian.png
Gorn Captain: res_cap_Gorn.png
Hirogen Captain: res_cap_Hirogen.png
Iconian Captain: res_cap_Iconian.png
Krenim Captain: res_cap_Krenim.png
Malon Captain: res_cap_Malon.png
Maquis Captain: res_cap_Maquis.png
Nausicaan Captain: res_cap_Nausicaan.png
Orion Captain: res_cap_Orion.png
Reman Captain: res_cap_Reman.png
Son'a Captain: res_cap_Sona.png
Suliban Captain: res_cap_Suliban.png
Tellarite Captain: res_cap_Tellarite.png
Tholian Captain: res_cap_Tholian.png
Terran Captain: res_cap_Earth.png
Vidiian Captain: res_cap_Vidiian.png
Klingon-Cardassian Alliance Captain: res_cap_KCA.png
Terran Empire Captain: res_cap_TEmpire.png
Terran Resistance Captain: res_cap_TResist.png
Proton Captain: res_cap_Proton.png
Intergalactic Evil Captain: res_cap_Chaotica.png