Skip to content

An error occurred while customizing the select box. #1867

@zhnjsacdjkn

Description

@zhnjsacdjkn

Description

When customizing the selection boxes, an issue occurs with the "DrawAboveTechno" setting. Specifically, when it is set to "yes", both unit and infantry selection boxes appear as only a white, transparent outline. When set to "no", the unit selection box works correctly, but the infantry selection box still appears as the white transparent outline. Interestingly, using the animation SHP from ra2.mix works properly in both cases.

Phobos Version

48

Conditions to reproduce

No response

INI code

Steps to reproduce

1.[AudioVisual]
DefaultInfantrySelectBox=pipbrdinfantry
DefaultUnitSelectBox=pipbrdunit

[SelectBoxTypes]
0=pipbrdunit
1=pipbrdinfantry

[pipbrdunit]
Shape=pipbrdunit.shp ; filename with .shp extension
Palette=palette.pal ; filename with .pal extension
Frames=0,1,2 ; List of integer, default 1,1,1 for infantry, 0,0,0 for vehicle and aircraft
Offset=0,0 ; integers - horizontal, vertical
Translucency=0 ; translucency level (0/25/50/75)
VisibleToHouses=all ; Affected House Enumeration (none|owner/self|allies/ally|team|enemies/enemy|all)
VisibleToHouses.Observer=yes ; boolean
DrawAboveTechno=yes ; boolean

[pipbrdinfantry]
Shape=pipbrdinfantry.shp ; filename with .shp extension
Palette=palette.pal ; filename with .pal extension
Frames=0,1,2 ; List of integer, default 1,1,1 for infantry, 0,0,0 for vehicle and aircraft
Offset=0,0 ; integers - horizontal, vertical
Translucency=0 ; translucency level (0/25/50/75)
VisibleToHouses=all ; Affected House Enumeration (none|owner/self|allies/ally|team|enemies/enemy|all)
VisibleToHouses.Observer=yes ; boolean
DrawAboveTechno=yes ; boolean

[Phobos]
EnableSelectBox=yes
2.
3.
...

Expected behaviour

The custom select box (which should have three distinct visual states)

Actual behaviour

but it is a white, transparent outline.

Additional context

No response

Checklist

  • The issue happens on the latest official version of Phobos and wasn't fixed yet.
  • I agree to elaborate the details if requested and provide thorough testing if the bugfix is implemented.
  • I added a very descriptive title to this issue.
  • I used the GitHub search and read the issue list to find a similar issue and didn't find it.
  • I have attached as much information as possible (screenshots, gifs, videos, debug and exception logs, etc).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions