aboutsummaryrefslogtreecommitdiff
path: root/src/courtroom.cpp
AgeCommit message (Collapse)Author
2019-09-18make icons for effects n shitCrystalwarrior
they're grabbed from the effects/icons/*same name as effects* gotta be .png or w/e i need my sleep
2019-09-18Implement effects system that reads your folder in theme/effects, or ↵Crystalwarrior
misc/<folder name>/<effects> Add an effect packet Allow aomovie to be fed a direct path Add some really terrible helper functions that shouldn't exist, sorry.
2019-09-17Add a sfx list that allows you to choose custom sfx from a list. Allows the ↵Crystalwarrior
same amount of customization as the iniswap list. It tries to read soundlist.ini in the character folder first. If it can't find it, it will fall back to the theme's character_soundlist.ini. It will only save the soundlist.ini if it differs from the character.soundlist.ini. There is currently no way to dynamically change sound delay atm but the function for it is there. Add more tooltips, my favorite!
2019-09-17Tool tips! Tool tips for everyone!Crystalwarrior
Change the way AOButton loads images into itself (stylesheet broke tooltips)
2019-09-17Streamlined ini swapping so the user can set up multiple character folders ↵Crystalwarrior
associated with a character. This will save to the character folder's iniswaps.ini. You can click on the dropdown and edit the text inside to add an iniswap, and press the [X] button that'll appear next to it to remove the ini swap. Recode the enter_courtroom and add a new update_character feature - the two are now separate and responsible for different things. The courtroom will reload the whole theme and widgets while the character is only responsible for all ui elements related to the character. This drastically improves performance when switching characters using /switch or something Add a set_char_ini helper function that allows you to modify the character variables. For now only used to set name= field when iniswapping
2019-09-17Allow lobby server descriptions to parse linksCrystalwarrior
Fix bad reference to ui_emote_right image Fix chatbox being part of the viewport (gets cut off if it's outside)
2019-09-17so this solution doesn't really work. It makes the chat message box appear ↵Crystalwarrior
over the character select screen. this bug only occurs when the chat box is initialized inside the viewport. Annoying as hell but at least it can be reproduced reliably.
2019-09-16Change the way sideplayer/playerchar ordering works to be stackUnder instead ↵Crystalwarrior
of Raise so it doesn't break anything (like the chatbox)
2019-09-16Fix an incredibly obscure bug where if the viewport message is inside the ↵Crystalwarrior
viewport itself it would not let you scroll it up should the message be too long.
2019-09-16Change get_stylesheet to return text of a parsed stylesheet file, its ↵Crystalwarrior
functionality was transferred to get_tagged_stylesheet Remove some useless/unused ui elements Implement stylesheet for courtrooms in a way that lets the end user modify a lot of its elements Use get_image_suffix for evidence_appear images
2019-09-16Chat arrow indicator to inform you if the current message stopped being ↵Crystalwarrior
processed Can be modified from the theme in chat_arrow of courtroom_design.ini Uses chat_arrow .png/.gif/etc.
2019-09-16Add two new helper functions - get_design_element and get_static_image_suffixCrystalwarrior
Modify all set_image calls to utilize said suffix helper function Dynamically change betweehn chatblank, chat, chatmed, chatbig based on the showname's length Use char.ini showname if showname is set to whitespace (doesn't yet check if char.ini showname is also whitespace)
2019-09-16Add additive text option where your messages are added to your previous one, ↵Crystalwarrior
fully networked and ready for the server Adjust some pointless static bool casts to be actual logic checks
2019-09-16Allow char.ini to override the chat font and font size with chat_font = and ↵Crystalwarrior
chat_size = Scream at the coders that decided hard-coding fonts and colors was a good idea (gotta properly let the themes modify that later) Fix a lot of ui elements not properly respecting the themes and their colors add a set_qfont method for those situations that need it Allow the theme to change sender colors for ooc and ms chatlogs rename url parser variable to something more immediately apparent as to what it is for readability's sake
2019-09-16Add expanded style sheet supportCrystalwarrior
Allow lobby fonts to happen
2019-09-16Add file reading, writing and appending functions that create folders if ↵Crystalwarrior
bool is true Fix server_address not being properly created in packet distribution Create a log file when you join a server in the logs/<server name>/<logname>.log and update it every time there's a new chat entry minor refactor of chatlogpiece
2019-09-15Add an option for networking frame-specific effectsCrystalwarrior
I'm starting to realize the options menu/system needs a complete overhaul at this point. (Auto-generating options menu, anyone?)
2019-09-15Add an opton to enable/disable screenshake + flashingCrystalwarrior
Fix moderation guard button not doing what it's supposed to (enable/disable modcalls) Fix moderation guard button appearing with failed logins Fix the option to toggle looping sfx not doing anything
2019-09-15Implement networking for frame-specific effects data sending/parsing if the ↵Crystalwarrior
server supports it Reorganize charmovie.h a bit and make some functions private Add a new helper function "read_char_ini_tag" which returns a qstringlist of all key=value strings associated with the tag
2019-09-15Looping SFX system - Defined this way:Crystalwarrior
[SoundL] sfx-roar = 1
2019-09-15Finally implement frame-specific effects such as screenshake, realization ↵Crystalwarrior
flash, sound effects, etc. Fix screenshake animation modifying the default positions of shook elements Fix aomovie sometimes not playing the last frame and causing lagspikes due to the delay() method
2019-09-14Allow [Time] to be blank for pre-anims to not be required to use itCrystalwarrior
play_talking and play_idle reduced in useless code
2019-09-14Fix objections hiding the characterCrystalwarrior
2019-09-14Resolve a segfault with screenshake, need to determine a better method to ↵Crystalwarrior
finish previous animation (if it exists) properly.
2019-09-14Fix the objection_stop_music option not doing anythingCrystalwarrior
Stop the animation for the side player char in pairing so as not to affect anything Remove the "DOOM" packet as anyone who has the source code can just remove it anyway
2019-09-14Add a blip sound QElapsedTimer so blipsounds don't play more frequently than ↵Crystalwarrior
60ms to preserve all of our ears. Adjust the message display speeds to feel more accurate to AA, with }}} speed displaying text instantly for that section
2019-09-14Bass.dll functionality-based clientside music looping system by using ↵iamgoofball
channel loopable flags (no use of QTimer required) Implement Goofball's AOV loopable music server message where any value that's not -1 when the length of the handle_message packet is longer than 3 will not loop the music (still confused about this but w/e)
2019-09-13forgot to actually uncomment the change, oopsCrystalwarrior
2019-09-13CONTROVERSIAL: Detach ui_vp_message from ui_vp_chatbox to prevent it from ↵Crystalwarrior
being affected by the screenshake. ui_vp_message still sets position relative to the chat box for now (as doing otherwise would break a lot of themes).
2019-09-13Set up screenshake button uiCrystalwarrior
Rewrite Goofball's doScreenshake() function to be much more modular and multi-purpose (also rename to do_screenshake() to match other functions) Add networking needed to make screenshake work. Works with AOV version of tsuserver3 (button screenshake only so far). Add get_theme_pos helper function, currently unused.
2019-09-12Fix compilation errorCrystalwarrior
Allow realization flashes to be animated images by making them AOMovies Eploit the newly added 'duration' system for realization AOMovie (cherry picked from commit bb98f79083648243216f665852a7d2326af11be0)
2019-09-12Remove unecessary hard-coded timers for the witness testimony .pngCrystalwarrior
Make the witness testimony use AOMovie instead of AOImage Remove pointless "testimony_in_progress" variable CONTROVERSIAL: Make the witness testimony indicator be position-ignorant so as to reduce the amount of hardcoding and allow broader usage of the witness testimony system (For example, Danganronpa investigation indicator, etc.) - This should not affect how the testimony indicator is received currently, as witness testimony usually requires the entire rest of the court to shut up until the cross-examination either way. (cherry picked from commit 932f430b683dffb0b965c32cd2247e2b6361dd0e)
2019-09-12Allow AOMovie to have timers that take priority over the animated image ↵Crystalwarrior
frame count Set it up so feeding the timer value when playing the AOMovie would use the timer but only in cases where a non-animated image is used Update shouts and wtce to pass the 'duration' argument which will be used if the image used is non-animated. Otherwise, prioritize the animated image duration.
2019-08-19read and store qt audio devicestonedDiscord
2019-08-06add es and ru to options and translate a lot more strings from the courtroomstonedDiscord
2019-08-05numbered arguments and more stringsstonedDiscord
2019-07-28german translationstonedDiscord
2019-07-28translate new features. is i18n deadstonedDiscord
2019-07-261% more readablestonedDiscord
2019-07-26fixed copypasta mistake on objection sfxstonedDiscord
2019-07-20Merge branch 'bass-optional' into 'master'oldmud0
Bass+discord optional See merge request AttorneyOnline/AO2-Client!59
2019-07-20Revert "More bug fixing."cents02
This reverts commit ca84ba516fc892deaeafc18b23ad5a06822b29f5
2019-07-20Merge branch 'master' into 'bass-optional'stonedDiscord
# Conflicts: # Attorney_Online.pro # include/aoapplication.h
2019-07-12Less insane debugging; minor refactoring (!75)David Skoland
2019-07-11Fix bug #82 causing a client crash if /save_case was used without providing ↵Windrammer
a courtroom state
2019-07-07Revert "More bug fixing."cents02
This reverts commit ca84ba516fc892deaeafc18b23ad5a06822b29f5
2019-07-07Merge branch 'master' into 'master'oldmud0
Fix escaped HTML characters screwing up the grapheme cluster sizes. See merge request AttorneyOnline/AO2-Client!61
2019-06-30Indentationcents02
2019-06-30New feature! /save_case . Takes two parameters, name and cr status. cents02
E.g: /save_case case1 lfp . It takes court evidence but leaves the doc and cmdoc options blank to be entered manually(if anybody actually puts anything).
2019-06-03Resolved requests/issues.cents02