branchsbox-corewars/maincancel
687 Commits over 516 Days - 0.06cph!
Don't open load dialog on editor load. Let the user select it from the radial menu (they may wanna just be editing a new map)
Add ActionHistory (wrapped LinkedList) to use instead of Stack to have a limited redo/undo capacity
Added Duplicate Blocks Action and implemented support to make duplicating blocks undoable and redoable
Added Area Blocks Action and made placing blocks in an area able to be undone or redone
Added a simple Undo / Redo functionality using actions. Only works for Place Blocks at the moment until other actions are implemented. Controls are a little funky... Duck + Drop to Undo, Duck + Reload to Redo.
Actually load the right file
Various UI improvements to Save / Load dialogs and the Loading Screen
Added crude Editor Save Dialog and Editor Load Dialog
Increased default editor camera FOV
Have loading screen properly re-appear when it should do
Merge branch 'main' of sbox-corewars
Make E snap instead of Shift
Some changes to the bounds
Automatically switch to editor mode if loading facepunch.cw_editor_map
Added corewars_conna.voxels and vpk to test voxel world loader
Add a default biome for worlds loaded by Voxel World Loader
Added VoxelWorldLoader entity to Core Wars for Hammer
If a Voxel World Loader entity is present when loading the map, use it to try and load the voxel world by file name
Adjust zoom out for Area Blocks and Duplicate Blocks tools
Revert to Copy mode and reset start position as the secondary attack for the Duplicate Blocks tool
Added MoveStartBlock method to EditorAreaGhost
Add GetAimVoxelPosition to EditorTool
Added MVP version of the Duplicate Blocks Tool
Added EditorCamera
Fixed bug with EditorAreaGhost when using MoveStartBlock
Set GlobalOpacity when using Area Blocks or Duplicate Blocks tool (not working in shader rn)
Update sbox-voxels submodule
Add VertexBufferExtension with methods to add a cube with repeating texture / UV scale settings
Add a new place_block_color.png to more clearly define what a block is
Pass a scale into AddCube so that blocks are properly displayed for the editor ghost
Update sbox-voxels submodule
Update sbox-voxels submodule
Update sbox-voxels submodule and use GetPositionsInBox
Update to use GetAimVoxelPosition
Added EditorAreaGhost render entity
Update sbox-voxels submodule
Added initial version of AreaBlocksTool
Update sbox-voxels submodule
Update sbox-voxels submodule
Update block data -> block state and update liquid block usage
Update sbox-voxels submodule
Increase radius of colored torches and add white torch
Place white torch with E (test)
Update sbox-voxels submodule
Update voxels shader to support GlobalBrightness and GlobalOpacity. Change sunlight brightness of faces depending on normal
Added some test commands and updated water texture for testing
Give water a little texture and have it attentuate sunlight
Update submodule and vmat
Actually use the water texture
Set WaterBlock.UseTransparency to true. Added voxel_translucent.vmat. Update sbox-voxels submodule.
EditorToolSelector -> SimpleRadialMenu
Added Save World and Load World options to the radial menu (only Save works right now)
Use FinalLayoutChildren and remove backdrop blur for now (I think it broke)
Scale the radial menu items nicely as the virtual mouse approaches them
Added stubs for AreaBlockTool and DuplicateBlocksTool and EditBlockDataTool
Added icon for place block tool and other tools
Added EditorPlayer.ChangeToolTo
Implemented first version of the radial menu for editor tools
Clear Attack1 and Attack2 from input if tab is being held down
Added UpdateHotbarSlotKeys
Update them to make sense...
Add EditorToolLibraryAttribute
Start working on Editor Tool radial menu
Spawn editor players in the very center of the world bounds
Use Input.Down( InputButton.Duck ) and Input.Pressed( InputButton.Back ) as a hotkey for saving the editor map
Basic Editor Hud / Editor Block Hotbar
Editor Hotbar Classes
Place Block Tool / Tool System
Fixed load error due to type name wrong
Fix loading client data for hotbar blocks if not set
Fixed loading of cw_hotbarblocks data (can't deserialize to byte[])
Fix errors when EditorHotbar is ticking before the voxel world has loaded
LoadingScreen from RootPanel to Panel
Add [Net] IsEditorMode to game and use that client-side
Fill editor hotbar blocks with random blocks if they aren't set
Fix icon for editor block slots
Add z-index to LoadingScreen
Update sbox-voxels submodule
Updated vpcf_c and update sbox-voxels submodule
Added initial version of map saving and loading for the editor.