Author Topic: Armor button uses same element id as Ok button in InventoryState  (Read 121 times)

Offline zRrr

  • Sergeant
  • **
  • Posts: 31
    • View Profile
Armor button uses same element id as Ok button in InventoryState
« on: November 04, 2024, 07:00:02 pm »
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.


Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9057
    • 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.