Adding new ui element
21 Dec 2017, 22:24 PM
#1
Posts: 3
So I have made a tuning pack that uses the vehicle population variable to shift all vehicles to their own population pool. It works just fine but it is difficult to play since there is no ui element to show the vehicle population variable. Is there a way i can add this to the ui? Even just a plain text vehicle pop cap on the side of the screen would suffice. The only ui elements in the attribute editor are for 3d interface elements like rotational placement and area markers. Thanks for any help.
23 Dec 2017, 02:51 AM
#2
Posts: 756 | Subs: 8
This should help: https://www.coh2.org/topic/38791/scar-ui-control-api
15 Jan 2018, 01:32 AM
#3
Posts: 3
Thanks for the direction! So I have a new problem now. I have created a label that is showing the popcap values I want, but it is showing all players overlapped since I am looping through all players in the game in the default.scar file. How do I use only the local player? I looked at the scar documentation and cannot find an enum value that will help me get the client player only.
15 Jan 2018, 12:29 PM
#4
Posts: 756 | Subs: 8
You could use the function
Game_GetLocalPlayer
to check if the current player is the local player.PAGES (1)
1 user is browsing this thread:
1 guest
Livestreams
31 | |||||
2 | |||||
2 | |||||
315 | |||||
233 | |||||
11 | |||||
10 | |||||
8 | |||||
6 | |||||
3 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.34957.860+14
- 3.589215.733+4
- 4.1099614.642-1
- 5.280162.633+8
- 6.305114.728+1
- 7.916405.693-2
- 8.271108.715+22
- 9.721440.621+3
- 10.1041674.607-2
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
9
Download
1231
Board Info
412 users are online:
412 guests
1 post in the last 24h
7 posts in the last week
39 posts in the last month
7 posts in the last week
39 posts in the last month
Registered members: 49063
Welcome our newest member, jennifermary
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, jennifermary
Most online: 2043 users on 29 Oct 2023, 01:04 AM