aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2020-08-21remove fantacryptscatterflower
2020-08-21Proof of concept complete. The timer will now take int msecs to start, and ↵Crystalwarrior
will properly display the time remaining until target time in hh:mm:ss.zzz Clock can be defined in courtroom_config.ini and its font set in courtroom_fonts.ini Pause and resume functions will not work as expected atm.
2020-08-21add a new aoclocklabel class that is a QLabel with fancy DR-Style timing ↵Crystalwarrior
features WIP
2020-08-19Reset BASS when switching devices; drop Qt Multimedia support (#262)scatterflower
* Allow changing audio device on the fly while in a server * Use default audio device if device in config doesn't exist * Automatically change audio device to default when current one is invalid * Destroy Qt Multimedia support It was decided that there was not enough attention being given to Qt Multimedia support to justify its continued maintenance simply as a libre alternative to BASS. While substantial changes to audio were being made in 2.8, the Qt Multimedia support code fell behind in disrepair. It's clear that there is no vested interest in implementing audio features twice for the sake of licensing. When it's time to switch to another audio library, it will be done unilaterally. * CI: Use BASS for Linux build Co-authored-by: oldmud0 <oldmud0@users.noreply.github.com>
2020-08-19IC log rewrite (#259)Crystalwarrior
* Rewrite the IC Log code to drastically reduce code duplication and have both downward and upward mode in the same function Regenerate the IC Log in set_widgets() function, making sure the maximum_blocks is accounted for and clearing the log to prepare for different log mode (upwards/downwards) if it's different from previous Add placeholder text telling the user the direction in which the log will go Remove useless first_message_sent global boolean, a remnant from a w e a k e r c o d e r m a n * Add log_colors boolean to reduce color I/O happening in append_ic_text (optimization meme) Clear the IC log when log_colors setting changes and reload theme is pressed Fix https://github.com/AttorneyOnline/AO2-Client/issues/221 * Add configurable margin between IC log entries Add configurable newline/singleline log mode Options in settings for these * Add optional timestamps * Un-hardcode "played music" from the chatlogpiece and introduce the "action" argument so that "presented evidence" is fully supported now Translate "has presented evidence" Regenerate IC chatlog instead of clearing it, properly updating every element with the new configurations * Go away *temp, code duplication making me shid and cry rn Why is this not done in append_ic_text, or why isn't there a dedicated ic logging func aAAAaaaaAAAaa Fix presenting evidence not being properly logged Fix timestamp being UTC instead of local time (local time will not be as confusing) * okok it was a joke a big ol bamboozle you got gnomed haha rick rolled beaned stickbugged I did NOT copy paste code, no, I actually intended to fix copy pasted code all along. log_ic_text was always planned. (Fix copypasted code for ic_chatlog_history and consolidate it into a single log_ic_text func)
2020-08-18Improved blankposting (#256)Crystalwarrior
* Consolidate blankposting into singular log entries of "no message" instead of spamming the logs repeatedly when someone decides to keep switching emotes Return proper blankpost checking to 2.8.5 (chatmessage_is_empty bool makes sure the chatbox doesn't appear - branch broke that behavior by never setting it) More robust blankpost checking, meaning that passing a competely empty "" string will also count as a blankpost Fix screenshake not working with blankposting by moving it before the chatmessage_is_empty check in start_chack_ticking() stage of the message parsing * Allow user to send blankposts without even having to input a single spacebar, but only if last m_chatmessage CID matches ours. * Reviews are cool and good:ok_hand: allow sending no-text chat message to server without weird cid checks (let the server validate if they want to do STR_OR_EMPTY or just STR) - doesn't break existing behavior and lets servers introduce the new one if they want to Treat all blank/whitespace messages as blankposting and not just single-whitespace. Remove chatmessage_is_empty bool because why the fuck would you even need it if you have m_chatmessage[MESSAGE] already Simplify chatlogpiece log entry to not be a *temp pointer by suggestion * another useless bool destroyed Make "additive" have a very awesome emergent behavior with blankposting - keep showing the chatbox+message while only changing the emotes. Works with preanims too!
2020-08-17fix statement after break; from casescatterflower
2020-08-17Do not update colors in log for each IC messagescatterflower
2020-08-16clang formatscatterflower
2020-08-16use shownames in log properlyscatterflower
2020-08-16use proper syntax to instansiate qbrushscatterflower
2020-08-16make suggested changes from code reviewscatterflower
2020-08-16Don't hang IC due to invalid emote modscatterflower
2020-08-16allow -1 charid for system messagesscatterflower
2020-08-16fix check for negative char_idscatterflower
2020-08-16fix incorrect emote modifierscatterflower
2020-08-16further cleanup of chat handlerscatterflower
2020-08-16Merge branch '2.8' into ic_fixesscatterflower
2020-08-16Merge pull request #250 from scatterflower/boldfixscatterflower
Fix improper bolding behavior due to malformed string literal
2020-08-16Fix improper bolding behavior due to malformed string literalscatterflower
2020-08-16Clean up logic in handle_chatmessage()scatterflower
2020-08-16Merge pull request #244 from scatterflower/is241scatterflower
Optimize ARUP
2020-08-16Update brushes on theme reloadscatterflower
2020-08-16Merge pull request #245 from scatterflower/realization_fixscatterflower
Check for custom realization sound when using effects list
2020-08-16Remove clientside doublepost checkingscatterflower
2020-08-16Ensure consistent behavior in IC log, clarify showname logic, and define ↵scatterflower
constants for minimum and maximum packet sizes
2020-08-16Check for custom realization sound when using effects listscatterflower
2020-08-15Create brushes for area list oncescatterflower
2020-08-15Only regenerate the area list once per ARUP packetscatterflower
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-31Fix reload theme breaking BG sizing (#212)Crystalwarrior
May need additional testing with animated BGs.
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-30Add darker button generator (#201)windrammer
When an `_off` emote button exists without an `_on` counterpart, the client will automatically generate the `_on` button and save it to disk. Co-authored-by: Cents02 <Cents02@Cents0.me> Co-authored-by: oldmud0 <oldmud0@users.noreply.github.com>
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-29Add Portuguese and Polish language optionslikeawindrammer
2020-07-29Fix character-specific theme not falling back to current theme (#207)windrammer
It is only logical to say that the user, when not specifying any specific speedline or similar in the theme, then the current theme should be checked first rather than the default theme. 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