aliens

Author Topic: UI help please  (Read 2921 times)

Hyper2Snyper

  • Guest
UI help please
« on: January 10, 2018, 07:14:37 am »
so earlier I saw a screenshot of a battle with a custom U.I at the bottom so I thought "how hard could it be?"
so I tried to edit the original resources but this is what happened.
please help

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: UI help please
« Reply #1 on: January 10, 2018, 08:19:17 am »
it'll most likely be the colour or shade you're using

Hyper2Snyper

  • Guest
Re: UI help please
« Reply #2 on: January 11, 2018, 12:36:42 am »
what shades work?

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: UI help please
« Reply #3 on: January 11, 2018, 12:56:38 am »
sorry, i had assumed you'd used colour offset 240-244 for the button and it was swapping the palette to the greyer colours at offsets 235-239, what's actually going on is you've used colours that are fine, but neglected to alter the information in interfaces.rul

while this file may seem impenetrable, rest assured, it is.
all you need to do is make a ruleset that changes buttonReserveNone from 67 to 131* to reflect the section of the palette you're using.
what this does is define the "mid" point of your colour range, around which colours will be swapped (130 will be transposed with 132, 129 with 133, and so on)

Code: [Select]
interfaces:
  - type: battlescape
    elements:
      - id: buttonReserveNone
        color: 131

*this may not be the exact value you're looking for, but it should be in the right ballpark.
« Last Edit: January 13, 2018, 01:04:15 am by Warboy1982 »