/// <summary> /// Sets up the specified row. /// </summary> /// <param name="rowindex">The index of the row.</param> /// <param name="name">The player name.</param> /// <param name="rank">The player's rank.</param> /// <param name="rowColor">The color for the row.</param> /// <param name="reduceRowColors">Reduces/removes color from the row.</param> /// <param name="rightIcon">66 = EYE -- 65 = RANK_FREEMODE -- 64 = BOOT(KICK) -- 63 = GLOBE -- 0 = no icon</param> /// <param name="crewLabelText">4 characters to place inside the crew logo.</param> /// <param name="blinkKickIcon">Makes the "rightIcon" switch for the kick/boot icon, then switching back repeatedly.</param> /// <param name="badgeText">The text for the status bar / badge on the right.</param> /// <param name="badgeColor">The color of the status bar / badge.</param> private void SetColumnPlayerRow(int rowindex, string name, int rank, HudColors.HudColor rowColor, bool reduceRowColors, int rightIcon, string crewLabelText, bool blinkKickIcon, string badgeText, HudColors.HudColor badgeColor) { PushScaleformMovieFunctionN("SET_DATA_SLOT"); PushScaleformMovieMethodParameterInt(3); // column PushScaleformMovieMethodParameterInt(rowindex); // index PushScaleformMovieMethodParameterInt(0); // menu ID 0 PushScaleformMovieMethodParameterInt(0); // unique ID 0 PushScaleformMovieMethodParameterInt(2); // type 2 (AS_ONLINE_IN_SESSION) PushScaleformMovieMethodParameterInt(rank); // initialIndex 1337 (rank) PushScaleformMovieMethodParameterBool(false); // isSelectable true PushScaleformMovieMethodParameterString(name); // player name PushScaleformMovieMethodParameterInt((int)rowColor); // row color / 134 PushScaleformMovieMethodParameterBool(reduceRowColors); // if true, removes color from left bar & reduces color opacity on row itself. // False colors everything. PushScaleformMovieMethodParameterString("0"); // unused / 0 PushScaleformMovieMethodParameterInt(rightIcon); // 66 EYE // 65 RANK_FREEMODE // 64 BOOT(KICK) // 63 GLOBE // <= 62 || >= 67 EMPTY PushScaleformMovieMethodParameterString("0"); // unused / 0 PushScaleformMovieMethodParameterString($"..+{crewLabelText}"); // crew label text. PushScaleformMovieMethodParameterBool(blinkKickIcon); // '(boot) kick blinking' PushScaleformMovieMethodParameterString(badgeText); // badge text PushScaleformMovieMethodParameterInt((int)badgeColor); // badge color EndScaleformMovieMethod(); // finish }
/// <summary> /// Set the specified row for the details screen. Right icon (type 1 / int version). Choose your own icon variation, color and checkmark on/off. /// </summary> /// <param name="rowindex">The row index.</param> /// <param name="leftText">The left text.</param> /// <param name="rightText">The right text.</param> /// <param name="rightIconTypeVariation">0 = star/mission. 1 = skull/deathmatch/rampage. 2 = flag/race. 3 = shield. 4 = multiple skulls.</param> /// <param name="iconColor">Hud color used for the icon.</param> /// <param name="iconCheckmark">Shows a (previously completed) checkmark on top of the icon.</param> private void SetColumnInfoRow(int rowindex, string leftText, string rightText, int rightIconTypeVariation, HudColors.HudColor iconColor, bool iconCheckmark) { PushScaleformMovieFunctionN("SET_DATA_SLOT"); PushScaleformMovieMethodParameterInt(1); // column PushScaleformMovieMethodParameterInt(rowindex); // index PushScaleformMovieMethodParameterInt(0); // menu ID 0 PushScaleformMovieMethodParameterInt(0); // unique ID 0 if (rightIconTypeVariation < 0 || rightIconTypeVariation > 4) { PushScaleformMovieMethodParameterInt(0); // right icon type } else { PushScaleformMovieMethodParameterInt(2); // right icon type } // 0 & 1 = right text, no icon. // 2 = icon (variation 1) // 3 = crew label(?) (broken, always "undef" as crew text) // 4 bordered rows, no icon. // 5 no right text. // >= 6 no icons, just left/right text. PushScaleformMovieMethodParameterString("img://candc_importexport/voltic2"); // right icon string or unused? 99% sure it's the latter. // real parameter type is also unknown PushScaleformMovieMethodParameterBool(false); // row isSelectable PushScaleformMovieMethodParameterString(leftText); // left text PushScaleformMovieMethodParameterString(rightText); // right text PushScaleformMovieMethodParameterInt(rightIconTypeVariation); // right icon variation?! (only used when int above (icon type) is 2. // 0 = star / mission. // 1 = skull / deathmatch / rampage. // 2 = flag / race. // 3 = shield / ?. // 4 = multiple skulls / ?. // >= 5 = no icon. PushScaleformMovieMethodParameterInt((int)iconColor); // right icon color (hud color) PushScaleformMovieMethodParameterBool(iconCheckmark); // right icon checkmarked. EndScaleformMovieMethod(); }
/// <summary> /// Set the specified row for the details screen. Right icon (type 2 / string version). Choose your own icon variation string, color and checkmark on/off. /// </summary> /// <param name="rowindex">The row index.</param> /// <param name="leftText">The left text.</param> /// <param name="rightText">The right text.</param> /// <param name="rightIconTypeVariation">"0", "1", "2", "3" confirmed working. Actual purpose/usage is unkown.</param> /// <param name="iconColor">Hud color used for the icon.</param> /// <param name="iconCheckmark">Shows a (previously completed) checkmark on top of the icon.</param> private void SetColumnInfoRow(int rowindex, string leftText, string rightText, string rightIconTypeVariation, HudColors.HudColor iconColor, bool iconCheckmark) { PushScaleformMovieFunctionN("SET_DATA_SLOT"); PushScaleformMovieMethodParameterInt(1); // column PushScaleformMovieMethodParameterInt(rowindex); // index PushScaleformMovieMethodParameterInt(0); // menu ID 0 PushScaleformMovieMethodParameterInt(0); // unique ID 0 PushScaleformMovieMethodParameterInt(2); // right icon type // 0 & 1 = right text, no icon. // 2 = icon (variation 1) // 3 = crew label(?) (broken, always "undef" as crew text) // 4 bordered rows, no icon. // 5 no right text. // >= 6 no icons, just left/right text. PushScaleformMovieMethodParameterString("img://candc_importexport/voltic2"); // right icon string or unused? 99% sure it's the latter. // real parameter type is also unknown PushScaleformMovieMethodParameterBool(false); // row isSelectable PushScaleformMovieMethodParameterString(leftText); // left text PushScaleformMovieMethodParameterString(rightText); // right text PushScaleformMovieMethodParameterString(rightIconTypeVariation); // "0", "1", "2", "3" confirmed working. PushScaleformMovieMethodParameterInt((int)iconColor); // right icon color (hud color) PushScaleformMovieMethodParameterBool(iconCheckmark); // right icon checkmarked. EndScaleformMovieMethod(); }
private void SetColumnSettingsRow(int rowindex, string leftText, string rightText, int rightSomething, bool rightDisabled, HudColors.HudColor rightThingColor) { ///// COLUMN 0 (LEFT) - ROW 0 PushScaleformMovieFunctionN("SET_DATA_SLOT"); PushScaleformMovieMethodParameterInt(0); // column PushScaleformMovieMethodParameterInt(rowindex); // index // com.rockstargames.gtav.pauseMenu.pauseMenuItems.PauseMenuBaseItem::__set__data PushScaleformMovieMethodParameterInt(0); // menu ID 0 PushScaleformMovieMethodParameterInt(0); // unique ID 0 PushScaleformMovieMethodParameterInt(0); // type 0 PushScaleformMovieMethodParameterInt((int)rightThingColor); // initialIndex 0 PushScaleformMovieMethodParameterBool(true); // isSelectable true PushScaleformMovieMethodParameterString(leftText); PushScaleformMovieMethodParameterString(rightText); ///// UNSURE HOW THIS WORKS, BUT IF YOU UNCOMMENT THIS, IT'LL ADD AN ICON TO THE ROW. ///// MAKING THE STRING "20" AND THE BOOL TRUE SEEMS TO DO SOMETHING WITH A ROCKSTAR LOGO INSTEAD. PushScaleformMovieMethodParameterInt(rightSomething); PushScaleformMovieMethodParameterString(rightText); PushScaleformMovieMethodParameterInt(rightSomething); PushScaleformMovieMethodParameterBool(rightDisabled); // SOMETHING WITH ROCKSTAR/STAR LOGO SWITCHING. ///// FINISH. EndScaleformMovieMethod(); }