Quantcast

Jump to content

» «
Photo

Bottom menu "scroller"

2 replies to this topic
DoggoMaster
  • DoggoMaster

    Player Hater

  • Members
  • Joined: 4 weeks ago
  • Poland

#1

Posted 2 weeks ago Edited by DoggoMaster, 2 weeks ago.

Hi, i want to create this "arrow up and arrow down" on bottom of menu, example: https://imgur.com/b8AP4PL

 

on c++


Unknown_Modder
  • Unknown_Modder

    Staff at GTA5-Mods.com

  • Members
  • Joined: 07 May 2015
  • Germany

#2

Posted 2 weeks ago

Draw the sprite "shop_arrows_upanddown" (txd is "commonmenu").


DoggoMaster
  • DoggoMaster

    Player Hater

  • Members
  • Joined: 4 weeks ago
  • Poland

#3

Posted 2 weeks ago

thanks for reply, but i find on menya baes script like this but .. dont working :/

 

 

 

DWORD dword = (DWORD)("CommonMenu");
if ((totalop > 14) && HAS_STREAMED_TEXTURE_DICT_LOADED(&dword))
{
DWORD dword2 = (DWORD)"shop_arrows_upANDdown";
DWORD dword3 = (DWORD)"arrowright";
Vector3 texture_res = GET_TEXTURE_RESOLUTION(&dword, &dword2);
 
temp = ((14.0f + 1.0f) * 0.035f) + 0.1259f;
 
if (currentop == 1) DRAW_SPRITE(dword, dword3, 0.16f + menuPos, temp, texture_res.x / (float)screen_res_x, texture_res.y / (float)screen_res_y, 270.0f, titlebox.R, titlebox.G, titlebox.B, 255);
else if (currentop == totalop) DRAW_SPRITE(dword, dword3, 0.16f + menuPos, temp, texture_res.x / (float)screen_res_x, texture_res.y / (float)screen_res_y, 90.0f, titlebox.R, titlebox.G, titlebox.B, 255);
else DRAW_SPRITE(dword, dword2, 0.16f + menuPos, temp, texture_res.x / (float)screen_res_x, texture_res.y / (float)screen_res_y, 0.0f, titlebox.R, titlebox.G, titlebox.B, 255);
 
}




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users