- Jun 12, 2020
- 85
- 75
This is the code I use to rotate my namebox.
It works, but each name has a slightly different position.
I think it is related to the length of the name.
Does anyone have an idea how I can fix this?
I thought it might be about the nameboxs rotation point relative to the textbox.
It works, but each name has a slightly different position.
I think it is related to the length of the name.
Does anyone have an idea how I can fix this?
Python:
transform NameRotation:
rotate -5
screen say(who, what):
style_prefix "say"
window:
id "window"
if who is not None:
window:
id "namebox"
style "namebox"
text who id "who" at NameRotation
text what id "what"
I thought it might be about the nameboxs rotation point relative to the textbox.
![Screenshot 2022-09-30 013152.png Screenshot 2022-09-30 013152.png](https://attachments.f95zone.to/2022/09/thumb/2095532_Screenshot_2022-09-30_013152.png)
![Screenshot 2022-09-30 013138.png Screenshot 2022-09-30 013138.png](https://attachments.f95zone.to/2022/09/thumb/2095533_Screenshot_2022-09-30_013138.png)
![Screenshot 2022-09-30 013210.png Screenshot 2022-09-30 013210.png](https://attachments.f95zone.to/2022/09/thumb/2095534_Screenshot_2022-09-30_013210.png)