Skip to content

Commit

Permalink
Cleanup for Workshop release
Browse files Browse the repository at this point in the history
  • Loading branch information
ischmal committed Jan 1, 2024
1 parent 96cb817 commit 4713c25
Show file tree
Hide file tree
Showing 27 changed files with 46 additions and 4,980 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
159 changes: 0 additions & 159 deletions data_static/photon_v2/library/input_configurations/default.json

This file was deleted.

1 change: 0 additions & 1 deletion data_static/photon_v2/misc/mdi_7_3_67.json

This file was deleted.

Empty file.
4 changes: 2 additions & 2 deletions lua/entities/photon_controller/shared.lua
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,10 @@ function ENT:QueryModeFromInputSchema( channel, query, param )
end
elseif ( query == "LAST_MINUS" ) then
param = tonumber( param ) or 0
result = schema[math.clamp( #schema - param, 1, #schema )]
result = schema[math.Clamp( #schema - param, 1, #schema )]
elseif ( query == "FIRST_PLUS" ) then
param = tonumber( param ) or 0
result = schema[math.clamp( 1 + param, 1, #schema )]
result = schema[math.Clamp( 1 + param, 1, #schema )]
end
return result.Mode
end
Expand Down
3 changes: 2 additions & 1 deletion lua/photon-v2/exlib/ui/cl_functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ exui.IconSizes = { 16, 24, 32, 48, 56, 60, 64, 96 }
exui.materialIconSizes = exui.materialIconSizes or {}

function exui.LoadMaterialIconsIndex()
exui.MaterialIconsIndex = util.JSONToTable(file.Read("lua/photon-v2/exlib/ui/mdi-index.json", "GAME"))
exui.MaterialIconsIndex = util.JSONToTable( EXUI_MDI_MAP_JSON )
-- exui.MaterialIconsIndex = util.JSONToTable(file.Read("lua/photon-v2/exlib/ui/mdi-index.json", "GAME"))
end

function exui.GetMDIFont( size )
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
EXUI_MDI_MAP_JSON =
[[
{
"replay": "歷",
"calendar-sync-outline": "",
Expand Down Expand Up @@ -5554,4 +5556,5 @@
"network-outline": "",
"plus-minus-box": "",
"poker-chip": ""
}
}
]]
Loading

0 comments on commit 4713c25

Please sign in to comment.