aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Menu/UMenu.pas (follow)
Commit message (Collapse)AuthorAgeFilesLines
* video-background fix. This should fix the white-screen bug with animation ↵tobigun2008-04-301-1585/+1595
| | | | | | backgrounds. Trying to open background-images/videos with ffmpeg to check whether they are images or videos is not a good idea because opening images like jpegs does not fail on newer versions of ffmpeg. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1046 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Fixed some range-check errors. Explicitly disable range-checks {$R-} should ↵tobigun2008-04-301-1585/+1585
| | | | | | | | | not be necessary for the MacOSX build anymore. Note: Texture-numbers (e.g. texnum) are unsigned (GLuint) so do not init them to -1. Use 0 instead. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1040 b956fd51-792f-4845-bead-9b4dfca2ff2c
* workaround for erroneously detection of 48000Hz-only devices as 44100Hz ↵tobigun2008-04-101-21/+30
| | | | | | devices in portaudio git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1017 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Now colorized textures are appended to the TTextureDatabase too. This will ↵tobigun2008-03-311-32/+30
| | | | | | | | prevent USDX from loading textures for buttons, statics etc. multiple times. This saves approx. 100MB of memory (100MB instead of 200MB, which is still too many) and speeds-up the loading process (starts in 3-6secs now instead of 12secs). git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@992 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Unicode fix for WideCharUpperCase(). This should work on all platforms now.tobigun2008-03-311-27/+9
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@991 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Removed unused Format-parameter in LoadTexture() and Add...()tobigun2008-03-311-40/+40
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@990 b956fd51-792f-4845-bead-9b4dfca2ff2c
* beep() removedtobigun2008-03-311-10/+5
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@989 b956fd51-792f-4845-bead-9b4dfca2ff2c
* - removed "Font Black" and "Font" texture typetobigun2008-03-311-137/+126
| | | | | | | | - use TEXTURE_TYPE_TRANSPARENT/COLORIZED/PLAIN in the future - texture-type is an enum now (not a string as before) -> pros: less memory consumption, compiler-check, case-insensitive, ... git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@988 b956fd51-792f-4845-bead-9b4dfca2ff2c
* - Select(Slide) textures should work now ('Font Black' -> 'Colorized')tobigun2008-03-281-15/+29
| | | | | | | | - Added constants for texture types (TEXTURE_TYPE_PLAIN/TEXTURE_TYPE_TRANSPARENT/TEXTURE_TYPE_COLORIZED) - RGBFloatToInt() helper function - rgb2hls clean-up (it is not even hls, it is hsv) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@980 b956fd51-792f-4845-bead-9b4dfca2ff2c
* fixed EIntOverflow in function TMenu.WideCharUpperCase when used on Linux ( ↵jaybinks2008-03-281-1/+22
| | | | | | | | | | | or other Unix Systems ) this fix should make Eddies fix for same or similar problem Correct, because the previous fix simply did an UpperCase which is not WideString Compatible. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@977 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Fixed compilation on the mac.eddie-08152008-03-251-0/+11
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@972 b956fd51-792f-4845-bead-9b4dfca2ff2c
* ParseInput(... ScanCode: byte; ...) -> ParseInput(... CharCode: WideChar; ...)tobigun2008-03-211-2/+2
| | | | | | See: http://trac2.assembla.com/usdx/ticket/35 git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@966 b956fd51-792f-4845-bead-9b4dfca2ff2c
* disabled ParseMouse because it is not implemented by any subclass (usage of ↵tobigun2008-03-091-1/+3
| | | | | | non-implemented abstract method) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@944 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Patchs from AlexanderS & f1fth_freed0mjaybinks2008-03-041-11/+3
| | | | | | also some minor bug fixes from myself. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@904 b956fd51-792f-4845-bead-9b4dfca2ff2c
* - some windows/lclintf dependencies removedtobigun2008-03-031-3/+3
| | | | | | - some indentation git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@899 b956fd51-792f-4845-bead-9b4dfca2ff2c
* fixed video looping and background video playback on linux..jaybinks2008-02-201-8/+3
| | | | | | ( probably fixed stuff for windows also ) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@868 b956fd51-792f-4845-bead-9b4dfca2ff2c
* mmmmmmmmmmmmmjaybinks2008-02-191-7/+40
| | | | | | | | | | Looping background images in the menu's ... http://trac2.assembla.com/usdx/ticket/5#comment:2 ( starting to get there ) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@865 b956fd51-792f-4845-bead-9b4dfca2ff2c
* small modification to the jaybinks2008-02-131-2/+10
| | | | | | | | | FadeTo function... it can now take a TAudioPlaybackStream as an optional 2nd paramater. so you can do a screen fade & play the swoosh sound, in 1 function call. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@848 b956fd51-792f-4845-bead-9b4dfca2ff2c
* removed a bunch of debugging from usdx startup.jaybinks2007-12-201-15/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@738 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Fixed texture drawing on Mac OS X (looks like BackImg.Z was not ↵eddie-08152007-11-221-0/+1
| | | | | | initialized). Now BackImg.Z is set to 0. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@629 b956fd51-792f-4845-bead-9b4dfca2ff2c
* fixed failed buildsjaybinks2007-11-011-0/+4
| | | | | | | | | | | | | | build:USDX-LAZLIN-75 build:USDX-LAZLIN-76 for some reason we can not use {$MODE Delphi} in an included file. ( Probably because of the way the compier scopes this switch to each pas file ) ive had to revert this part of eddies changes. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@548 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Mac OS X version compiles and links. I hope I didn't break too many files on ↵eddie-08152007-11-011-3/+1
| | | | | | | | | | windows/linux. Added switches.inc to all files. Changed many IFDEFs. For Windows-only code please use MSWINDOWS instead of WIN32 now. WIN32 is also used by the Mac port. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@546 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Fixed "White Line" Bugwhiteshark02007-10-271-2/+6
| | | | | | | -> I think so ;) (Bg was not at the right position) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@534 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Fixed linux compilation.jaybinks2007-10-021-1529/+1544
| | | | | | | | | | | | | Linux is now running in the main loop fine. * no audio playback or input yet... * Timing hack inplace.. that must be replace * bunch of textures not working.. however the play screen is looking similar to windows builds. I hope this dosnt break windows builds to much. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@460 b956fd51-792f-4845-bead-9b4dfca2ff2c
* fixed song loading in Lazarus..jaybinks2007-09-241-0/+1
| | | | | | | cant assume variables are initialized as 0 :) in UFile "Done: byte;" was no initialized on lazarus compiler. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@431 b956fd51-792f-4845-bead-9b4dfca2ff2c
* minor bug fixes to have lazarus build load resources into SDL_Image jaybinks2007-09-221-5/+13
| | | | | | | | | correctly... ( lazarus Resources are weak compared to delphi :( ) also Laz build will now run, and main loop works properly. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@429 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Adding new Resource compiler for lazarus projects..jaybinks2007-09-201-1/+2
| | | | | | | | | | | (other one did not name resources correctly) this resource compiler could be expanded by someone to Parse Ultrastar.rc and compile the lrs file, rather than having it hardcoded in USDXResCompiler other changes, include ability to read the Resource String properly in code generated by lazarus. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@422 b956fd51-792f-4845-bead-9b4dfca2ff2c
* added UCommon ( in classes ) for lazarus...jaybinks2007-09-191-1/+6
| | | | | | | | | | | common functions needed for lazarus ( and others ) can be put in here. also this now compiles on lazarus.. ( dosnt link yet... but I dont get any critical compiler errors ) tested to compile in my delphi, and basic functionality is fine. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@395 b956fd51-792f-4845-bead-9b4dfca2ff2c
* changes in order to compile in lazarus...jaybinks2007-09-181-0/+4
| | | | | | minor tidy ups and removal of big old comment blocks.. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@394 b956fd51-792f-4845-bead-9b4dfca2ff2c
* did some cleanup and minor modificationsb1indy2007-09-081-10/+6
| | | | | | | | | UDisplay.pas: tried to make the screenfade-effect transparent (doesn't work for now) UMenu.pas: removed some unnecessary code from DrawBG UGraphic.pas: fixed display of loading screen (after it broke with the modifications in UMenu.pas) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@379 b956fd51-792f-4845-bead-9b4dfca2ff2c
* now buttons can also have transparent colorized texturesb1indy2007-09-021-16/+67
| | | | | | POC-Pic: http://imageshock.eu/img/colorizedbuttons-ao81.jpg git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@365 b956fd51-792f-4845-bead-9b4dfca2ff2c
* finished stuff for colorized transparent textures with statics (credits to ↵b1indy2007-09-021-5/+20
| | | | | | | | mog, who started it) still to do: same thing with buttons and maybe everything else ;) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@363 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Added Text Fading to ButtonCollectionwhiteshark02007-06-141-0/+4
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@262 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Fixed text position of SelectSlide when High is not 70whiteshark02007-05-161-1/+6
| | | | | | | Added ability to change Z and Textsize from SelectSlide Use new abilitys to finish SongMenu Screen in Deluxe Theme git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@196 b956fd51-792f-4845-bead-9b4dfca2ff2c
* added "popups" to ask for confirmation when leaving party mode or game or to ↵b1indy2007-05-031-4/+15
| | | | | | | | | display messages (like minor errors) still ugly, needs some theme work git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@157 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Added ability to make buttons invisible(and also unselectable) in Theme. whiteshark02007-04-301-1/+4
| | | | | | | | Visible = 0 Useful for f.e. the Exit Button from MainScreen Fixed a bug in PartyNewRoundScreen that causes a crash when an Arrow Button is pressed git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@152 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Commented some Debuging Outputs in ULogwhiteshark02007-04-291-1/+1
| | | | | | | Fixed a Bug in ButtonCollection that causes a Crash when UpButton is Pressed at the Last Button Added ShortCut E in MainMenu for Editor git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@150 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Added 2 new Buttons to ScreenMain: Multi and Statswhiteshark02007-04-291-54/+294
| | | | | | | | | | | | | | | | | | | Updated Language Fiels to Fit with new Buttons Some CodeClean Up in Menu Class and in Screens Some minor Bug fixes I forgot about Added ability to group Buttons within a Screen New Theme Object: ButtonCollection: Same Attributes as a Button Plus FirstChild: Defining the First Button in the Group. For Example: SingSolo is 1, SingMulti Button is 2, in ScreenMain Added Attribute to Theme Button: Parent: Number of the assigned Group, 0 for no Group Used new Abilitys in MainScreen git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@149 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Added PS3 like ButtonFade abilitywhiteshark02007-04-261-8/+18
| | | | | | | | | | | | Some new ThemeButton Attributes: DeSelectReflectionSpacing: ReflectionSpacing when Button is not Selected Fade: Enable Stepings in Fading FadeText: Fade Texts with Button SelectW, SelectH: Width and Height when Button is Selected FadeTex: Texture used when Button Fades to not stretch the Texture. Not nessecary. FadeTexPos: Position of FadeTex git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@143 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Some Memory tweaking (13 MB Less Ram using at 800 Songs)whiteshark02007-04-201-2/+33
| | | | | | Some Loading Time tweaking (From 8 Secs to 6 Secs on my Computer) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@123 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Added Reflection to ThemeStaticwhiteshark02007-04-131-9/+15
| | | | | | Added Attribut ReflectionSpacing git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@83 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Fixed: Button.Z Attribut not loaded from Themewhiteshark02007-04-051-27/+27
| | | | | | Fixed: AddButton procedure don't set Result git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@58 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Added SBGW to TSelectSlide: Defining the Width of the Selections BGwhiteshark02007-03-291-9/+11
| | | | | | | | Added W to TText + Pagebreaks. If Width is given the Text breaks at the given width. Breaks are not generated perfect yet, needs some tuning. Changed all affected Screens to fit the new TText Component git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@49 b956fd51-792f-4845-bead-9b4dfca2ff2c
* git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1 ↵whiteshark02007-03-211-0/+1136
b956fd51-792f-4845-bead-9b4dfca2ff2c