aboutsummaryrefslogtreecommitdiff
path: root/src/courtroom.cpp
AgeCommit message (Collapse)Author
2020-08-05Fix not using custom chatbox's colors (#228)windrammer
* Fix not using custom chatbox's colors Moved set_text_color_dropdown() to after current_char is actually updated with the selected char. Otherwise set_text_color_dropdown will try to update the colors with either nothing as character, or with the previously selected character. Use get_chat() so it actually gets the name of the custom chatbox instead of using the same name as the character. Remove the extra "c" since get_chat_color it's already called with this "c" in place. * Fix previous fix crashing the client on DRO servers For some reason the client would work just fine if set_text_color_dropdown() was called only once after updating the character selected by the user. But when joining a DRO server the client would crash just before loading the music. * Improve comment with where crash happens * Fix get_chat_markdown to get the custom chatbox on misc of the char instead of trying to find the character folder on misc * Fix client using the current character colors on other people's messages Also remove the comment explaining the crash if set_text_color_dropdown is removed from set_widgets * Fix loading custom colors loading after the message was added to the log
2020-08-04Fix music display disappearing on theme reload (#233)windrammer
2020-08-04Fix current_display_speed overflow (#232)windrammer
2020-07-31Add option for automatic logging (#203)windrammer
Just so we're on the same page, this is enabled by default. Co-authored-by: Cents02 <Cents02@Cents0.me>
2020-07-31Add "Play Random Song" option (#200)Crystalwarrior
It also respects the search string, so only visible tracks are chosen from the pool. Categories (i.e. entries with children) are also ignored.
2020-07-31Add a p_char optional argument to set_fonts() (#209)Crystalwarrior
Add overrides to set_font for font name and size (this is to preserve the chat_size and chat_font char.ini arguments that were implemented way earlier) Cease the baddening with set_font that was there before and condense it into a proper set_font function call Implement set_font for custom showname shenanigans from the misc folder
2020-07-30Fix regression parsing HTML escapesoldmud0
Introduced trying to fix emoji. This parsing function is cancerous.
2020-07-30Make spectator function as a character with ID -1 (#211)Crystalwarrior
- Don't hide spectator button anymore. - Make the spectator button properly send the char switch packet. - Fix the spectator button not properly loading the courtroom and music list etc.
2020-07-30Fix emoji displaying extraneous characters (#219)oldmud0
Fixes #192.
2020-07-29Fix build error from bad mergeoldmud0
redefinition of objection_mod
2020-07-29Add support for multiple custom interjections via context menu (#162)in1tiate
* YOU DO NOT BELONG IN THIS PR GET OUT Co-authored-by: oldmud0 <oldmud0@users.noreply.github.com> Co-authored-by: likeawindrammer <31085911+likeawindrammer@users.noreply.github.com> Co-authored-by: Crystalwarrior <Varsash@Gmail.com>
2020-07-29Add Qt 5.9 compatibility (#202)windrammer
* Added Ubuntu 18 backwards compatibility Co-authored-by: Cents02 <Cents02@Cents0.me>
2020-07-29Fix showname placeholder text and shout button after changing characters (#147)in1tiate
2020-07-29Fix colors not persisting when refreshing IC log (#204)windrammer
Co-authored-by: Cents02 <Cents02@Cents0.me>
2020-07-29Hitting return on blank search box should collapse music list (#205)windrammer
* If enter is hit with no query it collapses the music list Co-authored-by: Cents02 <Cents02@Cents0.me>
2020-07-29Fix screenshake button shunting character to origin (#215)windrammer
* Fix #193 By making sure handle_chatmessage_3 calls start_chat_ticking and thus do_screenshake only after either play_idle or play_talking is called * Move call to start_chat_ticking to the end of handle_chatmessage_3
2020-07-27Fix chatlog instances where char_id 0 is ignored (#210)Crystalwarrior
2020-07-26Merge pull request #198 from Crystalwarrior/bugfix/max_colorsoldmud0
Fix max colors being one int off
2020-07-25Fix max_colors allowing +1 more than the actual maxCrystalwarrior
2020-07-23Add showname alignment option for theme makers (#189)Crystalwarrior
* Add alignment options for shownames * Make shownames align to the left by default like before * Use this branch as an opportunity to fix showname not being resized according to misc/ folder courtroom_design.ini
2020-07-11Fix APNG backgrounds not appearing on list; fix BASSOPUS path for macOS (#185)raidensnake
* Added apng support for animated background positioning. * Adjusted the apng background position search. * Fixed libbassopus.dylib path on MacOS preventing opus files from playing.
2020-07-08Fix the color fix pr when logs go downwards where it didn't add an \n ↵Crystalwarrior
because html doesn't like \n very much so it has to be <br> because that's what HTML does yea
2020-07-06Regenerate the background when reload_theme is pressed to prevent scaling ↵Crystalwarrior
issues (#181)
2020-07-04Fix html not being parsed in ic logs when ic logs go downwards (#178)Crystalwarrior
I found this bug like 3 weeks ago but I forgot to actually make a PR for it oops
2020-07-04Merge pull request #175 from Crystalwarrior/feature/packet-musicoldmud0
More sensible music loop packet configuration
2020-07-03Add a setting to turn on/off custom character-defined chatboxes (#166)Crystalwarrior
* Add a new "Custom Chatboxes" settings option to enable/disable char.ini setting custom chat box designs per-character * Fix chat_arrow being incorrectly updated between character messages if the custom chatbox modified the chat arrow positioning/size in any way * brackets matter
2020-07-02Some commit managed to regress the colors and it actually totally wasn't my ↵Crystalwarrior
fault!!! Fix colors being broken
2020-06-30Add explanation comments to the music looping varsCrystalwarrior
Make music not loop by default for backwards compatibility with old style on servers not supporting clientside music looping Make the music loop when the packet containing loop data gives us "1", treating it as "looping=true".
2020-06-29Fix issues when undefined colors result in everyone's chat not using talk ↵Crystalwarrior
anims (#174) base/misc/default/config.ini with properly defined "baseline" colors will have to be supplied with vanilla content later. Remove hardcoded colors - user has no access to these unless config.ini is valid, yet when others speak using these ID's their text shows up just fine. Either reimplement full on hardcoding madness (NOOOOOOOOOOOOOOOOOOOOOOOO NO NO NO NOOOOOOOOOOOOOOOO NOOOOO!!!!) or yeet. I chose the sensible option :^)
2020-05-23translate stuff that got run oversD
2020-05-23no and zonesD
2020-05-22Merge KFO source unconditionally into AO2oldmud0
2020-05-22Perform clang-formatoldmud0
If you don't want to see this commit on blames, use the hidden whitespace option on GitHub, or use `-w` in git-blame.
2020-05-22Full revert to tag 2.6.2oldmud0
Due to a countless number of changes made to the core that were not fully understood, tested, or documented, it was decided to roll everything back to the last known stable version (2.6.2). Changes dropped include: - Witness needed - Shake - Frame SFX - Multiple custom objections - Multithreaded thumbnail generation - Looping - Various translation additions - "Mirror IC" - Color in IC log - An invocation of clang-format Next time, work together and split your big fork into independently testable feature branches.
2020-05-22Fix looping frame SFX not working w/ AOV's definitionsCrystalwarrior
2020-05-22clang 2 electric boogalooCrystalwarrior
{ BasedOnStyle: LLVM, BreakBeforeBraces: Stroustrup}
2020-05-22Clang-ify the code with this styling using Visual Studio Code:Crystalwarrior
{ BasedOnStyle: LLVM, UseTab: Never, IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Stroustrup, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, ColumnLimit: 0, AccessModifierOffset: -4, NamespaceIndentation: All } (this is the Visual Studio preset with only "BreakBeforeBraces" changed from Allman to Stroustrup)
2020-04-24what is this, c++ for ANDssD
this kept it from buildinf with MSVC
2020-04-23Fixed wrong name being written in mirror modecents
2020-04-20Hooked up the new settingscents
Did you know you could scale the iclog with ctrl + mouse wheel?
2020-04-20Added additional customization options.cents
I didn't format anything tho that is at the end
2020-04-18Change second exclamation to period on tooltiplikeawindrammer
No need for two exclamations
2020-04-17Run clang-format on entire projectoldmud0
Indentation fixed to 2 spaces per tab. Braces set to Stroustrup style. Lines reflow at 80 characters. One-line method bodies are on the same line as the signature. Space always after `//`. No indentation on preprocessor macros. Includes are sorted lexicographically. If you don't want to see this commit on blames, use the hidden whitespace option on GitHub, or use `-w` in git-blame.
2020-04-17Mega-merge of CR forkoldmud0
CR likely stands for "CentsRaidensnake." Like the Case Cafe mega-merge before it, this was not a clean merge, and it had to be split up into two parts: the actual changes, and the attempt it made to reformat the entire code via clang-format. This branch had a complicated set of changes that would be difficult to describe in this commit message. It would be better described in a proper changelog.
2020-04-13Add possibility for custom use text besides just "played music"Crystalwarrior
Implemented "presented evidence" message
2020-04-12Remove dumb memes (#141)in1tiate
* remove memes * Update courtroom.cpp
2020-04-11fix dropdown bug, add minor featurein1tiate
2020-04-02Fix evidence display viewport element being a FUCKING JACKASSCrystalwarrior
2020-04-01Fix collapse all rightclick option being annoying in its behavior. Now it's ↵Crystalwarrior
*smart*!
2020-04-01Fix weird behavior with area list and arup system + wrong column being used ↵Crystalwarrior
for 'metadata'