Skip to content

Commit

Permalink
Forgot to add NoteField layers and player_config files.
Browse files Browse the repository at this point in the history
  • Loading branch information
kyzentun committed Mar 30, 2016
1 parent 522447e commit efe0134
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Themes/default/Graphics/NoteField layers.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
local filter_color= color("0.135,0.135,0.135,1")

local layers= {
Def.Quad{
InitCommand= function(self)
self:hibernate(math.huge):draworder(newfield_draw_order.board)
:diffuse(filter_color)
end,
PlayerStateSetCommand= function(self, param)
local pn= param.PlayerNumber
local alf= getenv("ScreenFilter"..ToEnumShortString(pn)) or 0
if alf > 0 then
self:SetHeight(4096):diffusealpha(alf):hibernate(0)
end
end,
WidthSetCommand= function(self, param)
self:SetWidth(param.width+8)
end,
}
}

return layers
13 changes: 13 additions & 0 deletions Themes/default/Scripts/02 player_config.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
local player_config_default= {
ComboUnderField= true,
FlashyCombo= false,
GameplayShowStepsDisplay= true,
GameplayShowScore= true,
JudgmentUnderField= true,
}

player_config= create_lua_config{
name= "player_config", file= "player_config.lua",
default= player_config_default,
}
add_standard_lua_config_save_load_hooks(player_config)

0 comments on commit efe0134

Please sign in to comment.