781 Commits over 2,710 Days - 0.01cph!
Markup Library Improvements (#1732)
* Markup Library Improvements
- New argument to MarkupObject:Draw() (textAlign) allows for text alignment inside the maxWidth bounds (i.e. align text center, align text right)
- Added MarkupObject:GetMaxWidth()
- Added markup.Escape which escapes markup-sensitive characters ( & < > )
- Fixed trailing spaces on new lines
- Fixed issue where new blocks were unnecessarily being split in the middle of a word
- Changed pairs to ipairs
- Improved code readability, cleaned up comments, removed a redundant comment
* New blocks will not wrap unless preceded by a space, remove some redundant code, change name of variable and add new comment
* Use lookup table for unescape string.gsub
* Small optimizations
- Changed blocks[ i ] to blk
- Populate new_block tables during declaration rather than setting keys & values after creation
* Create markup.Color which converts a Color into a string for use in <color> tags
Removed useless variable (#1832)
TTT: fix TTTCanPickup hook not denying pickup when false is returned (#1860)
TTT: PT-BR translation final update (#1859)
TTT: update PT-BR translation (#1858)
TTT: translation updates (#1857)
* Add L.tip41 to Brazilian Portuguese translation
* Correct inconsistencies with the date markers
* Removes some translations from the Simplified Chinese translation that do not exist in the original English translation.
Fixed a potential error in duplicator tool
TTT: update Russian translation (#1847)
Added: Various handy methods replacing PANEL:AddControl() (#1702)
Problems system improvements
Code style cleanups
Lowercase model name in PropSelect for sorting purposes
This simply matches behavior of the "old" method which ends up with lowercase keys.
hook.Add with invalid 2nd argument throws proper error (#1810)
Add SlowWalkSpeed to player_manager / GM.SetPlayerSpeed / Default player classes (#1827)
Add utility functions for using the Hammer IO system (#1530)
Example usage
```lua
function ENT:KeyValue( key, value )
if ( BaseClass.KeyValue ) then BaseClass.KeyValue( self, key, value ) end
if ( self:SetNetworkKeyValue( key, value ) ) then
return
elseif ( self:AddOutputFromKeyValue( key, value ) ) then
return
end
-- Your entity's logic goes here
end
function ENT:AcceptInput( name, activator, called, value )
if ( BaseClass.AcceptInput and BaseClass.AcceptInput( self, name, activator, called, value ) ) then
return true
end
if ( self:AddOutputFromAcceptInput( name, value ) ) then
return true
end
-- Your entity's logic goes here
return false
end
```
Create table.MemberValuesFromKey (#1539)
New library: math.ease (#1755)
* New library: ease
* ease -> math.ease
* fix: call correct math.ease function
probably a module leftover
* Reduce repeated multiplication to powers
* Reduce _G lookups and use a `module()`
Co-authored-by: Tom <27384135+CupCakeR@users.noreply.github.com>
Add DComboBox:OnMenuOpened(menu) (#1659)
Add table.Shuffle (#1683)
* Add table.Shuffle
Performs an inline Fisher-Yates shuffle on the table in O(n) time
* table.Shuffle small optimization
Fix table.RemoveByValue throwing an error when key is not a number (#1704)
Made hook.Add/Remove not silently fail on arg type mismatch (#1344)
* Made hook.Add/Remove not silently fail on arg type mismatch
In the rare case a typo was made for the hook args, it is now noticeable.
TTT: add PT-BR translation for L.tip41 (#1842)
TTT: add spectator mic volume tip (#1840)
* New player mic volume tip
* Increased number of tips
TTT: PT-BR translation update (#1838)
Fix mistake in russian.lua (#1837)
Incorrect form
> ВЫБЕРЕТЕ ОБРАЗЕЦ
Correct
> ВЫБЕРИТЕ ОБРАЗЕЦ
The word “выберите” expresses a wish, request, or order. In this context, the verb form of the imperative plural is used.
https://russkiiyazyk.ru/orfografiya/pravopisanie/kak-pravilno-pishetsya-slovo-vyiberete-ili-vyiberite.html
TTT: update Russian translation (#1835)
TTT: PT-BR translation updates (#1829)
TTT: update Spanish translation (#1828)
Fixed duplicator and saves not working
Fixed an issue with constraint.GetAllConstrainedEntities
Fixed constraint.GetAllConstrainedEntities returning all entities constrained to world if the given entity is constrained to world
Added g_SpawnMenu:GetCreationMenu()
Added CreationMenu.GetCreationTab & GetCreationTabs
Added spawnmenu.SwitchCreationTab( id )
Made spawnmenu.SwitchToolTab work
Added 3rd argument to spawnmenu.ActivateToolPanel
Save game map workshopID stuff
Adds duplicator.FigureOutRequiredAddons
Required Workshop addons for duplicator
Attribute CS:GO lobby map to CS:GO (#1824)
makes "Other" empty by default again
Fixed a Lua error with DTree_Node
DComboBox's dropdown works better on modal panels
Disallowed Shadow shader to be used as rope material
TTT: add more validation to corpse commands
- Prevent spamming of "call detective" command. Thanks to #1822 for suggesting a similar fix.
- Make sure cmds act on player corpses only
- Cleanup
TTT: more updates to PT-BR translation (#1820)
TTT: update German translation (#1818)
Better implementation of Player.IsUserGroup (#1819)
Fix gmod_camera being dependent on tickrate (#1816)
TTT: PT-BR translation updates (#1815)
Fixed XSS vulnerability in loading screen. (#1814)
Using the method `.text` rather than `.html`, since the method `.html` does not escape html entity characters.
TTT: updated the Russian localization (#1813)
Fixed DownloadingFile in loading screens
duplicator copies lua-set colors and material override
Fixed 0 width constrains creating errors
Fixed Lua errors with default scoreboard
Prevent 2 or more players from 'driving' a single entity
Make use of IsConCommandBlocked
Makes blocked concommand errors include proper stack.
Fixed duplicated constraints not getting correct player obj
Add xalign to draw.WordBox (#1809)
* Add xalign to draw.WordBox
* Also add yalign
Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com>
Fix errors from GetInt() when text entry contents aren't numeric (#1808)
* Fix errors from GetInt() when entry isn't numeric
Co-Authored-By: blu <75856885+bludotbat@users.noreply.github.com>
* Update dtextentry.lua
Co-authored-by: blu <75856885+bludotbat@users.noreply.github.com>
Co-authored-by: Rubat <robotboy655@gmail.com>
TTT: add a player mic volume slider to the scoreboard (#1804)
* Adds a player mic volume slider to the TTT scoreboard
* Add Brazilian Portuguese translation
Co-authored-by: Tiagoquix <30274161+Tiagoquix@users.noreply.github.com>
TTT: fix table.Shuffle
Did not shuffle the first couple elements of the list as much as it should (note that this is not used for traitor selection or anything critical).
TTT: fix propspec_allow_named setting not taking effect
The propspec_allow_named flag on the ttt_map_settings entity was being overwritten.
The default for all maps is still to disable it as maps will expect this at this point, and non-TTT maps that could allow named entity propspec possession are rarely played in practice.
Voice scale support for base/sandbox
Improvement to dupe bounding box
world constraints fix
colored ropes support
More accurate bounding box for dupes
Permissions & "remember my choice"
TTT: fix low-karma autokick evasion (#1803)
TTT: add missing accents to Brazilian Portuguese (#1801)
TTT: update the Brazilian Portuguese translation (#1799)
Fix reliance on the sandbox gamemode for DoF (#1798)
* Update super_dof.lua
Co-authored-by: Rubat <robotboy655@gmail.com>