aboutsummaryrefslogtreecommitdiff
path: root/include/courtroom.h
AgeCommit message (Collapse)Author
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-13Add possibility for custom use text besides just "played music"Crystalwarrior
Implemented "presented evidence" message
2020-02-24Make pos dropdown more abstract and actually useful by letting servers send ↵Crystalwarrior
only pos you can actually access. Pos dropdown system also reads the actual bg folder of the current BG to see all the created pos.
2020-01-17Network effects folder so you don't need to modify your own char.ini to see ↵Crystalwarrior
custom effects
2019-12-05Add a message delay modifier when punctuation is reached to simulate Ace ↵Crystalwarrior
Attorney 1 chat parsing (replicating the effect where characters would make a short pause, as if saying the line out loud) TODO: Make this a configurable thing
2019-10-12Allow area list to contain metadata (as well as categories for future expansion)Crystalwarrior
Fix backwards compatibility breaking when you join a server that doesn't support effects after previously joining a server that does
2019-10-06Courtroom Fonts can now have the "sharpness" setting (pixelated/no anti alias)Crystalwarrior
2019-10-05I HAVE CONQUERED BASS HELLCrystalwarrior
BEHOLD, LOOP_START AND LOOP_END MUSIC POINTS! It reads the songname.mp3.txt file, looking for loop_start, loop_length and loop_end in samples MUSIC EFFECTS SYSTEM THAT CAN ***COMMUNICATE WITH THE SERVER***, WOAHHHHHHHHH! RIGHT-CLICK CONTEXT MENUS TO ENABLE/DISABLE SPECIFIC MUSIC EFFECTS MUSIC EFFECTS ENUMS Fix an issue with music looping
2019-10-03Fix move func making characters slowly move to the left every frame on ↵Crystalwarrior
animated chars which are sized differently from viewport Add a new get_qfont function Fix message box font being different from every other font due to incorrect font loading scheme Fix ui_evidence_save and ui_evidence_load tooltips being wrong
2019-10-03Remove /rainbow as clientside slash commands are cursed. I shall purge all ↵Crystalwarrior
clientside slash command memery soon... Fix /save_case iterating from last to first instead of first to last Implement private evidence saving/loading to and from an .ini file
2019-10-03Positional evidence implemented. Click a button to change between ↵Crystalwarrior
private/global evidence list. There's also a button to transfer evidence to global/private, context sensitive. TODO: Save/load private evidence list
2019-10-02Add rightclick context menus to sfx dropdown, iniswap dropdown and effects ↵Crystalwarrior
dropdown to open the ini's and respective folders try to fix settings menu (I failed)
2019-10-02Rewrite pairing character ordering logic to instead operate based on a ↵Crystalwarrior
user-accessible drpodown menu (it's a dropdown for the future when there's more options) Fix current charmovie breaking offsets Make pairing offsets applicable even without a pairing partner, making it a generic offset Fix the chat message hardcoding max colors to 8 (when it should be max_colors) Come up with a way to convey the ordering information without creating an extra new packet in a cool way (backwards compatibility AND less clutter!) More info on the evidence_x and evidence_ok tooltips Don't mute music when you switch to CSS anymore
2019-10-01Fix some read_file errors on effect loadingCrystalwarrior
Make FM packet only fetch music, and new FA packet to fetch areas (this way you don't have to reload the entire music list just to get new areas) Fix a possible segfault with emote lists if emote list size is bad Hide casing button if server doesn't support casing Hide the remove buttons by default for iniswaps and sfx list so they're not clickable when they shouldn't be Prevent background from being displayed unless the server asked us to Fix some redundancy surrounding current_side Rework music list so list_music doesn't care about search bar and the hiding is actually done in the search function Implement text centering, rightening and justifying Fix text scrolling meme that happened with \n and skipped chars Fix the pos dropdown not actually caring if you selected jur and sea pos. Fix the pos dropdown sending like a million packets when scrolled through. Prevent characters from being incorrectly resized if a different-scaled character speaks Fix character select screen letting you choose characters that the server doesn't want us to be
2019-09-28Strip out QRandomGenerator because it's "too new" of a module (linux build ↵Crystalwarrior
does not compile with it) Add QPluginLoader checks for qapng and qwebp
2019-09-28Overhaul the evidence system:Crystalwarrior
You can now press the checkmark to save evidence. The checkmark only appears when your edited evidence differs from evidence on the server. You will now be alerted if you try to exit out of the evidence with unsaved changes (pressing "X") Fix double-clicking on image name not doing anything You will now be alerted if the evidence changed as you were editing it Add tooltips Make an evidence_close function that can be referred to from multiple places
2019-09-27i did itCrystalwarrior
i did the thing Final overhaul of filter_ic_text Fix spoken colors not being actually spoken Fix a message of ()()()() spamming idle/talking animations (instead it just does the idle animation until you feed it an actual character) Prevent spamming of play_idle and play_talking on the fastest text speed Properly escape html and construct a message that works with characters &, <, >, ", etc. for filter_ic_text Turn whitespace into html entities to prevent html from eating it up (alternative/better solution would be to erase excessive whitespace entirely but yaknow, some niche applications, whatever) Fix filter_ic_text not displaying the best string it could in ic logs (strip html, display newlines as \n, etc.) Scroll the scrollbar of the message box correctly according to some real wacky magic stuff I'm doing here. Let's hope there's no situations where it desyncs from the actual text.
2019-09-25Optimize color markdown stuff properly by creating lists and preloading thingsCrystalwarrior
2019-09-25Hellcommit of doom and sufferingCrystalwarrior
Create two new helper functions - get_chat_markdown and remake read_char_ini_tag to be read_ini_tags for more general purpose Modify aolineedit to support preserving selection after unfocusing (building this for using dropdown list for setting colors), as well as remove the setReadOnly functionality and use it in signals instead Overhaul the color system to get rid of inline colors, allow full customization of colors and usage of configuration files for every facet of how a color functions (should we be talking, should we remove that markdown char, etc.) Complete overhaul of color markdowns system TODO: Make this thing not lag to hell, fix chat messages hogging the IC as the animation never ends apparently
2019-09-24Change all instances of "colour" to "color" for consistency's sakeCrystalwarrior
Overhaul inline colors system to properly support additive text and further expansion Add two new colors - Gray and Blank, the latter being used for IC parsing. Instead of adding text symbol by symbol, reveal more of the already-rendered text instead so that it properly anticipates words that need to be on the newline. Changed the append_ic function slightly so it appends ": " to text only after it's no longer needed. Made gray color less inconsistent with everything else
2019-09-24When the background is changed, display it in the correct position as ↵Crystalwarrior
dictated by the server packets Add a new "set pos" packet Udpate the pos dropdown according to the current pos
2019-09-23Make music list a QTreeWidget instead for easier category searching, etc.Crystalwarrior
Temporarily allow music suffix until I let the client perform a fileExists check similar to how images are handled (.mp3? play mp3, if not mp3, play .ogg, etc. etc.)
2019-09-21Clear the screen and display the background in the correct position when ↵Crystalwarrior
background change func is called
2019-09-20Tweak the ambience/crosfade layer to fade in regardless of another sample ↵Crystalwarrior
being there Fix music not being looped sometimes Prevent channel less than 0 from being passed Set up a new music display element with an attached music name, it displays a scrolling text of the currently playing music Fix music packet processing issues Make SFX slider responsible for all music channels besides 0 (actual music) scrolltext.cpp code recipe was taken from https://stackoverflow.com/questions/10651514/text-scrolling-marquee-in-qlabel - thanks to leemes for that one, I only adapted it for newer C++ version and tweaked some stuff.
2019-09-18Concurrent evidence updating!Crystalwarrior
Similar to the way Google Docs work, the evidence will be updated immediately as you make any changes to it.
2019-09-18Evidence and emotes reloading when reload_theme is pressedCrystalwarrior
Update evidence a bit and change the way it sets images to something much better and less confusing Update the hovering logic a bit so there's less weird occurences happening e.g. evidence button is deleted
2019-09-18When the realization button is pressed, update the Effects thing too.Crystalwarrior
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-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-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 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-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-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-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-13Make shout, verdict and wtce default duration values into constantsCrystalwarrior
2019-09-13Make log go downwards by defaultCrystalwarrior
Rename kill_music_on_object to objection_stop_music for readability Update blip rate (faster overall, more accurate to the trilogy) - based on AOV values Update default blip rate to be "once every two symbols"
2019-09-12Merge branch 'music_list_update'Crystalwarrior
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
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.
2019-09-11Add clear_music and clear_areasCrystalwarrior
Comment out the index as it can be potentially confusing alongside "true" area numbers Add "FM" to Packet Received that would reload the areas and music list TODO: Test this with arup systems
2019-08-19read and store qt audio devicestonedDiscord
2019-07-12Less insane debugging; minor refactoring (!75)David Skoland
2019-05-09Text is now advanced based on graphemes, rather than bytes.Cerapter
2018-12-26moved headers into include and cpp files into src + logo into resourceDavid Skoland