How do you get a custome texture on a menu base?
(02-16-2018 - 06:53 PM)BigBurger Wrote:(02-14-2018 - 03:35 AM)DewRific Wrote:(02-14-2018 - 02:59 AM)Jwwalsh Wrote: How do you get a custome texture on a menu base?
Custom Background?
yes
calling from an external file?
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
(02-17-2018 - 12:56 AM)densN Wrote: Use sprites. Load custom texture into title update and do it that way. No one is going to help you load it from the hdd.
there are also other methods
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
(02-16-2018 - 10:20 PM)NoNameV2345 Wrote:(02-16-2018 - 06:53 PM)BigBurger Wrote:(02-14-2018 - 03:35 AM)DewRific Wrote:(02-14-2018 - 02:59 AM)Jwwalsh Wrote: How do you get a custome texture on a menu base?
Custom Background?
yes
calling from an external file?
from the game.
with you an example of coding
thank's
void DrawSprite(char * Streamedtexture, char * textureName, float x, float y, float width, float height, float rotation, int r, int g, int b, int a)
{
GRAPHICS::REQUEST_STREAMED_TEXTURE_DICT(Streamedtexture, false);
if (GRAPHICS::HAS_STREAMED_TEXTURE_DICT_LOADED(Streamedtexture));
GRAPHICS::DRAW_SPRITE(Streamedtexture, textureName, x, y, width, height, rotation, r, g, b, a);
}
call: DrawSprite("commonmenu", "shop_box_tick",x, y, width, height,rot,r,g,b,a);
commonmenu and shop_box_tick is example
{
GRAPHICS::REQUEST_STREAMED_TEXTURE_DICT(Streamedtexture, false);
if (GRAPHICS::HAS_STREAMED_TEXTURE_DICT_LOADED(Streamedtexture));
GRAPHICS::DRAW_SPRITE(Streamedtexture, textureName, x, y, width, height, rotation, r, g, b, a);
}
call: DrawSprite("commonmenu", "shop_box_tick",x, y, width, height,rot,r,g,b,a);
commonmenu and shop_box_tick is example
This account is currently banned
Ban reason: Abusing the Report function is not allowed. Please read the rules.
Ban reason: Abusing the Report function is not allowed. Please read the rules.
(02-17-2018 - 02:02 AM)Wesley_Marcos Wrote: void DrawSprite(char * Streamedtexture, char * textureName, float x, float y, float width, float height, float rotation, int r, int g, int b, int a)
{
GRAPHICS::REQUEST_STREAMED_TEXTURE_DICT(Streamedtexture, false);
if (GRAPHICS::HAS_STREAMED_TEXTURE_DICT_LOADED(Streamedtexture));
GRAPHICS::DRAW_SPRITE(Streamedtexture, textureName, x, y, width, height, rotation, r, g, b, a);
}
call: DrawSprite("commonmenu", "shop_box_tick",x, y, width, height,rot,r,g,b,a);
commonmenu and shop_box_tick is example
I'm going to try
thank you :)
Users browsing: 4 Guest(s)