Jessica92
New Member
- Joined
- Mar 24, 2018
- Messages
- 6
- Reaction score
- 2
Hello, I'm new here, you might have seen the global hello thread I made a moment ago so sorry if I'm a "noob" in the forum.
Anyhow I've been working on OTC the last week and trying to learn how to work and build it.
I've came a long way, but I have so much more to learn.
What I need help with now, is to understand anchors, how they work and how to add new ones.
I'm trying to add a second right panel, I've managed to do so pretty fine, except with position of it.
gameinterface.otui:
I've came to understand that it's the anchors responsibility to make the position accurate but I don't understand them fully.
With the code I gave, my second right panel will appear on top of the original one.
How do I add a new anchor to be side-by-side with the original right-anchor?
Or.. if I'm completely wrong..
How do I add the second right panel properly?
Thank you in advance!
Anyhow I've been working on OTC the last week and trying to learn how to work and build it.
I've came a long way, but I have so much more to learn.
What I need help with now, is to understand anchors, how they work and how to add new ones.
I'm trying to add a second right panel, I've managed to do so pretty fine, except with position of it.
gameinterface.otui:
CSS:
GameSidePanel
id: gameRight2Panel
anchors.right: parent.right
anchors.top: parent.top
anchors.bottom: parent.bottom
focusable: false
visible: true
on: true
$!on:
width: 0
visible: false
I've came to understand that it's the anchors responsibility to make the position accurate but I don't understand them fully.
With the code I gave, my second right panel will appear on top of the original one.
How do I add a new anchor to be side-by-side with the original right-anchor?
Or.. if I'm completely wrong..
How do I add the second right panel properly?
Thank you in advance!