mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-01-22 17:26:20 +01:00
Increase rows to 4
This commit is contained in:
parent
097befa6e7
commit
0de34a0000
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
init python:
|
init python:
|
||||||
|
|
||||||
# CONST PARAMS
|
# CONST PARAMS
|
||||||
GALLERY_COLS = 3
|
GALLERY_COLS = 4
|
||||||
PREFERRED_WIDTH = 432 #px (1920 * 0.225)
|
PREFERRED_WIDTH = 432 #px (1920 * 0.225)
|
||||||
PREFERRED_HEIGHT = 243 #px (1080 * 0.225)
|
PREFERRED_HEIGHT = 243 #px (1080 * 0.225)
|
||||||
PREFERRED_ASPECT_RATIO = 16.0/9.0 # 1.7777..
|
PREFERRED_ASPECT_RATIO = 16.0/9.0 # 1.7777..
|
||||||
|
@ -190,7 +190,7 @@ screen cg_gallery(flag, __yoffset = 0, origin = 'CG'):
|
||||||
# enough or the actual position
|
# enough or the actual position
|
||||||
python:
|
python:
|
||||||
item_counter += 1
|
item_counter += 1
|
||||||
yoffset = item_counter / 3 * PREFERRED_HEIGHT * 1.15
|
yoffset = item_counter / GALLERY_COLS * PREFERRED_HEIGHT * 1.15
|
||||||
yoffset = int( yoffset + (PREFERRED_HEIGHT * 1.15))
|
yoffset = int( yoffset + (PREFERRED_HEIGHT * 1.15))
|
||||||
|
|
||||||
use flag_button(item, yoffset, origin)
|
use flag_button(item, yoffset, origin)
|
||||||
|
|
Loading…
Reference in a new issue