mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
g
This commit is contained in:
parent
2ea506b296
commit
0f22a6a79c
7 changed files with 25 additions and 27 deletions
3
changelogs/0.1.2.txt
Normal file
3
changelogs/0.1.2.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Freeware mode updated
|
||||
Added _old niko and twm sprites
|
||||
Implemented True Memory Mode
|
||||
|
|
@ -1,7 +1,5 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
cd "dirname $0"
|
||||
|
||||
# User-configurable variables.
|
||||
oneshot_id=420530
|
||||
STEAMWORKS_PATH=$(realpath ..)/steamworks
|
||||
|
|
@ -11,9 +9,9 @@ cd build
|
|||
make -j$(nproc)
|
||||
cd ..
|
||||
|
||||
mkdir build/bandle
|
||||
mkdir build/bandle
|
||||
mkdir build/bandle/Data
|
||||
mkdir -p build/bandle
|
||||
mkdir -p build/bandle
|
||||
mkdir -p build/bandle/Data
|
||||
|
||||
# Compile steamshim.
|
||||
#echo -e "-> ${cyan}Compile steamshim...${color_reset}"
|
||||
|
|
@ -34,7 +32,7 @@ cp build/oneshot build/bandle/
|
|||
#echo "$oneshot_id" > "$ONESHOT_PATH/steam_appid.txt"
|
||||
|
||||
# Copy libraries.
|
||||
mkdir libs
|
||||
mkdir -p libs
|
||||
ldd build/oneshot | ruby libraries.rb
|
||||
#ldd steamshim_parent/build/steamshim | ruby libraries.rb
|
||||
cp libs/* build/bandle
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ module Settings
|
|||
:enforce_april_fools => false,
|
||||
:true_memory_mode => false,
|
||||
:oneshot_mode => false,
|
||||
|
||||
:twm_shader_footprint => true,
|
||||
# Advanced
|
||||
|
||||
#controls
|
||||
|
|
@ -41,6 +41,10 @@ module Settings
|
|||
:debug_text_scene_title => true,
|
||||
:debug_picture_names => false,
|
||||
:debug_lightmap => false,
|
||||
|
||||
|
||||
#Hidden
|
||||
:is_dejavu => false,
|
||||
}
|
||||
reset_controls!
|
||||
end
|
||||
|
|
@ -159,7 +163,6 @@ class Window_Settings
|
|||
:parameter => :scaling_mode,
|
||||
:values => [tr("Nearest Neighbor"), tr("Smooth(old)")]
|
||||
},
|
||||
{ :type => :sep, :name => tr("World")},
|
||||
{
|
||||
:type => :bool,
|
||||
:name => tr('Dynamic Light'),
|
||||
|
|
@ -209,7 +212,7 @@ class Window_Settings
|
|||
},
|
||||
{
|
||||
:type => :bool,
|
||||
:name => tr('Purple message box for Entity(Not implemented)'),
|
||||
:name => tr('Purple message box for Entity'),
|
||||
:parameter => :en_purple_messagebox
|
||||
},
|
||||
{
|
||||
|
|
@ -219,14 +222,19 @@ class Window_Settings
|
|||
},
|
||||
{
|
||||
:type => :bool,
|
||||
:name => tr('True Memory Mode(Not implemented)'),
|
||||
:name => tr('True Memory Mode'),
|
||||
:parameter => :true_memory_mode
|
||||
},
|
||||
{
|
||||
:type => :bool,
|
||||
:name => tr('Freeware Mode(!, WIP)'),
|
||||
:name => tr('Freeware Mode(!)'),
|
||||
:parameter => :oneshot_mode
|
||||
},
|
||||
{
|
||||
:type => :bool,
|
||||
:name => tr('World machine shader on Entity footprints'),
|
||||
:parameter => :twm_shader_footprint
|
||||
},
|
||||
],
|
||||
tr("Controls") => [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ class Scene_Title
|
|||
MENU_Y = 100
|
||||
ENTRY_HEIGHT = 25
|
||||
SDLVer = "#{Sunshine::SDLVersion_major}.#{Sunshine::SDLVersion_minor}.#{Sunshine::SDLVersion_micro}"
|
||||
SunshineVer = "0.1.1-dev"
|
||||
SunshineVer = "0.1.2"
|
||||
|
||||
#--------------------------------------------------------------------------
|
||||
# * Main Processing
|
||||
|
|
@ -59,9 +59,7 @@ class Scene_Title
|
|||
py = (Graphics.height / 1080.0)
|
||||
@sprite.ox = @sprite.bitmap.width / 2 * (0.5 * (1.0 - px) + px)
|
||||
@sprite.oy = @sprite.bitmap.height / 2 * (1.3 * (1.0 - py) + py)
|
||||
|
||||
RPG::Mod.exec_hooks("hooks/Scene_Title/init", binding)
|
||||
|
||||
|
||||
# check for debug file to add debug items
|
||||
if Settings[:debug]
|
||||
$game_party.gain_item(54, 1) # debug save
|
||||
|
|
@ -94,15 +92,6 @@ class Scene_Title
|
|||
@debug.bitmap.draw_text(0, ENTRY_HEIGHT, 200, ENTRY_HEIGHT, tr("SDL #{SDLVer}"))
|
||||
@debug.bitmap.draw_text(0, ENTRY_HEIGHT * 2, 200, ENTRY_HEIGHT, tr("Sunshine #{SunshineVer}"))
|
||||
@debug.bitmap.draw_text(0, ENTRY_HEIGHT * 3, 200, ENTRY_HEIGHT, tr("sec_#{Sunshine::SECURITYSTATE}"))
|
||||
jit_text = "JIT: unsupported"
|
||||
if defined?(RubyVM::YJIT) && RubyVM::YJIT.enabled?
|
||||
jit_text = "JIT: YJIT"
|
||||
elsif defined?(RubyVM::ZJIT) && RubyVM::ZJIT.enabled?
|
||||
jit_text = "JIT: ZJIT"
|
||||
elsif defined?(RubyVM::RJIT) && RubyVM::RJIT.enabled?
|
||||
jit_text = "JIT: RJIT"
|
||||
end
|
||||
@debug.bitmap.draw_text(0, ENTRY_HEIGHT * 4, 200, ENTRY_HEIGHT, tr(jit_text))
|
||||
if ModLoader::IS_ENABLED
|
||||
@debug.bitmap.draw_text(0, ENTRY_HEIGHT * 5, 200, ENTRY_HEIGHT, tr("Mods loaded: #{ModLoader::COUNT}"))
|
||||
end
|
||||
|
|
|
|||
|
|
@ -35,8 +35,9 @@ class Sprite_Character
|
|||
# Choose the appropriate light sprite
|
||||
@light_sprite.viewport = @character.light_ignore_transition ? @viewport : (($game_screen.tone.blank?) ? @viewport : @light_viewport)
|
||||
@light_sprite.shader = @sprite.shader =
|
||||
|
||||
#idk what is this, maybe later i remake this
|
||||
@character.character_name.start_with?("en") || (Settings[:twm_shader] && @character.character_name.start_with?("niko") && $game_switches[160]) ? Shader::WorldMachine :
|
||||
@character.character_name.start_with?("en") || (Settings[:twm_shader] && @character.character_name.start_with?("niko") && ($game_switches[160] or Settings[:true_memory_mode])) ? Shader::WorldMachine :
|
||||
@character.shader || Shader::Sprite
|
||||
@light_sprite.mirror_x = @sprite.mirror_x = @character.mirror_x
|
||||
@light_sprite.mirror_y = @sprite.mirror_y = @character.mirror_y
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ class Sprite_Footprint < Sprite
|
|||
|
||||
def update
|
||||
return if disposed?
|
||||
|
||||
|
||||
self.x = (@real_x - $game_map.display_x + 3) / 4 + 16
|
||||
self.y = (@real_y - $game_map.display_y + 3) / 4 + 32
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ class Sprite_Footsplash < Sprite
|
|||
self.oy = 80
|
||||
self.bitmap = RPG::Cache.misc('foot_splash')
|
||||
self.src_rect.set(0, 0, 80, 80)
|
||||
RPG::Mod.exec_hooks("hooks/Sprite_Footsplash/init", binding)
|
||||
update
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue