projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
7796f3f
)
loads the description
author
hgn
<hgodden00@gmail.com>
Wed, 31 May 2023 16:48:16 +0000
(17:48 +0100)
committer
hgn
<hgodden00@gmail.com>
Wed, 31 May 2023 16:48:16 +0000
(17:48 +0100)
ent_skateshop.c
patch
|
blob
|
history
diff --git
a/ent_skateshop.c
b/ent_skateshop.c
index e1e154875ae549fa8936ac12a9fab1832daa7fc2..08d32e82e265cccb351394a7fdb72050b4ca8d46 100644
(file)
--- a/
ent_skateshop.c
+++ b/
ent_skateshop.c
@@
-719,6
+719,9
@@
fade_out:;
if( vg_msg_seekframe( &workshop, "workshop", 0 ) ){
const char *title = vg_msg_seekkvstr( &workshop, "title", 0 );
if( title ) global_skateshop.render.item_title = title;
if( vg_msg_seekframe( &workshop, "workshop", 0 ) ){
const char *title = vg_msg_seekkvstr( &workshop, "title", 0 );
if( title ) global_skateshop.render.item_title = title;
+
+ const char *dsc = vg_msg_seekkvstr( &workshop, "author", 0 );
+ if( dsc ) global_skateshop.render.item_desc = dsc;
}
global_skateshop.render.reg_id = global_skateshop.selected_board_id;
}
global_skateshop.render.reg_id = global_skateshop.selected_board_id;
@@
-743,7
+746,8
@@
fade_out:;
* ----------------------------------------------------------------- */
scale *= 0.4f;
m3x3_setdiagonalv3( mlocal, (v3f){ scale, scale, thickness } );
* ----------------------------------------------------------------- */
scale *= 0.4f;
m3x3_setdiagonalv3( mlocal, (v3f){ scale, scale, thickness } );
- mlocal[3][0] = -font3d_string_width( &gui.font, 0, "JA" );
+ mlocal[3][0] = -font3d_string_width( &gui.font, 0,
+ global_skateshop.render.item_desc );
mlocal[3][0] *= scale*0.5f;
mlocal[3][1] = 0.0f;
mlocal[3][2] = 0.0f;
mlocal[3][0] *= scale*0.5f;
mlocal[3][1] = 0.0f;
mlocal[3][2] = 0.0f;