mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-21 06:19:56 +00:00
ikispukis
This commit is contained in:
parent
97a7e7b751
commit
8aaf3f5ae5
1 changed files with 13 additions and 1 deletions
|
|
@ -1,11 +1,23 @@
|
||||||
|
# aspects, resolutions and filenames
|
||||||
|
# 4:3 - 640x480 - "_4_3"
|
||||||
|
# 16:9 - 960x540 - "_16_9"
|
||||||
|
# 16:10 - 960x600 - "_16_10"
|
||||||
|
#
|
||||||
|
# extra (not recomendated)
|
||||||
|
# 16:9 HD - 1280x720 - "_16_9_hd"
|
||||||
|
# 16:9 FHD - 1920x1080 - "_16_9_fhd"
|
||||||
module Graphics
|
module Graphics
|
||||||
RESOLUTION_ASPECT =
|
RESOLUTION_ASPECT =
|
||||||
if Graphics.width == 1280 && Graphics.height == 720
|
if Graphics.width == 1920 && Graphics.height == 1080
|
||||||
|
"_16_9_fhd"
|
||||||
|
elsif Graphics.width == 1280 && Graphics.height == 720
|
||||||
"_16_9_hd"
|
"_16_9_hd"
|
||||||
elsif Graphics.width == 1920 / 2 && Graphics.height == 1080 / 2
|
elsif Graphics.width == 1920 / 2 && Graphics.height == 1080 / 2
|
||||||
"_16_9"
|
"_16_9"
|
||||||
elsif Graphics.width == 640 && Graphics.height == 480
|
elsif Graphics.width == 640 && Graphics.height == 480
|
||||||
"_4_3"
|
"_4_3"
|
||||||
|
else
|
||||||
|
""
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue