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
2 | |||||
916 | |||||
13 | |||||
11 | |||||
1 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.655231.739+15
- 2.842223.791+5
- 3.939410.696+5
- 4.35459.857-1
- 5.599234.719+7
- 6.278108.720+29
- 7.307114.729+3
- 8.645.928+5
- 9.10629.785+7
- 10.527.881+18
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
11
Download
1265
Board Info
1146 users are online:
1146 guests
0 post in the last 24h
10 posts in the last week
26 posts in the last month
10 posts in the last week
26 posts in the last month
Registered members: 50000
Welcome our newest member, qq801
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, qq801
Most online: 2043 users on 29 Oct 2023, 01:04 AM