aliens

Author Topic: [FIXED] Armor button uses same element id as Ok button in InventoryState  (Read 483 times)

Offline zRrr

  • Sergeant
  • **
  • Posts: 36
    • View Profile
In Battlescape/InventoryState.cpp _btnArmor uses same element id as _btnOk, so when I move Ok button with ruleset like

Code: [Select]
interfaces:
  - type: inventory
    elements:
      - id: buttonOK
        pos: [213, 1]

armor selection also moves.

« Last Edit: December 31, 2024, 07:58:21 pm by zRrr »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9197
    • View Profile
Re: Armor button uses same element id as Ok button in InventoryState
« Reply #1 on: November 04, 2024, 07:48:44 pm »
Many buttons on many GUIs in OXC and OXCE share the same interface element.
We're lazy to create a new interface element for each button.


Offline zRrr

  • Sergeant
  • **
  • Posts: 36
    • View Profile
Re: [FIXED] Armor button uses same element id as Ok button in InventoryState
« Reply #3 on: December 31, 2024, 08:03:03 pm »
Thanks

No more starting missions unprepared because I accidentally clicked Ok. Now only starting missions unprepared because I deliberately clicked Ok :)