Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //----------------- Talking players -----------------
- //
- // Just enable TalkingPlayers Bool and make sure that Talking cahr* gets added onscreen somewhere
- //-----------------------------------------------------
- #include <math.h>
- TalkingPlayerLoop()
- {
- int Count;
- if (TalkingPlayers)
- {
- DrawTexture("CommonMenu", "interaction_bgd",0.1f,0.1f,0.15f,0.04f, 0, 255, 255, 255, 255); //TitleBar
- GRAPHICS::DRAW_RECT(0.1f, 0.12f, 0.15f, 0.005f, indicatorRed, indicatorGreen, indicatorBlue, indicatorOpacity);
- for (int i = 0; i =< 32; ++i)
- {
- if (NETWORK::NETWORK_IS_PLAYER_TALKING(i) == true )
- {
- std::string playerName = GET_PLAYER_NAME(i);
- Count++
- //Use either of the 2 First is with opacity 2nd is with gradient rotation is -90f could need to be 90f though :P
- GRAPHICS::DRAW_RECT(0.1f,(0.25f * Count + 0.11f),0.15f,0.025f,backgroundRed,backgroundGreen,backgroundBlue,120); //Option Background
- DrawTexture("frontend","gradient_background",0.1f,(0.25f * Count + 0.11f),0.15f,0.025f,-90f,backgroundRed,backgroundGreen,backgroundBlue,backgroundOpacity); //Option Background
- //
- DrawTextToScreen(playerName,4,0.11f,(0.25f * Count + 0.11f),0.3f,0.25f,optionsRed,optionsGreen,optionsBlue,optionsOpacity,false); //Players name
- }
- }
- GRAPHICS::DRAW_RECT(0.1f,(0.25f * Count +0.12f), 0.15f, 0.005f, indicatorRed, indicatorGreen, indicatorBlue, indicatorOpacity);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement