aboutsummaryrefslogtreecommitdiffstats
path: root/src/base/UMain.pas (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix resize-bug in SDL < 1.2.14tobigun2010-09-051-0/+3
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2631 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Readability improvement: Rename local variable Done to KeepGoing. Convert ↵k-m_schindler2010-06-111-15/+14
| | | | | | While loop to repeat loop in MainLoop. no change in logic. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2485 b956fd51-792f-4845-bead-9b4dfca2ff2c
* finally fixing r2478whiteshark02010-06-101-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2481 b956fd51-792f-4845-bead-9b4dfca2ff2c
* fix compiling after r2478whiteshark02010-06-101-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2480 b956fd51-792f-4845-bead-9b4dfca2ff2c
* fixed main loop initializationwhiteshark02010-06-101-0/+2
| | | | | | should fix the close w/o error message after loading that some people reported git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2478 b956fd51-792f-4845-bead-9b4dfca2ff2c
* - added missing Result assignment in TAudioInputProcessor.CheckPlayersConfigbrunzelchen2010-06-101-17/+18
| | | | | | | - replaced "continue" var with "Done" in UMain - CheckEvents is now a procedure and not a function git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2477 b956fd51-792f-4845-bead-9b4dfca2ff2c
* - URecord.ValidateSettings should not display the popup itselftobigun2010-06-061-1/+8
| | | | | | - Array free version of CheckPlayersConfig git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2450 b956fd51-792f-4845-bead-9b4dfca2ff2c
* move software cursor initialization and bg music start from ↵whiteshark02010-05-181-0/+8
| | | | | | ScreenMain.OnShow to Main procedure to fix bugs with the new dialog on wrong mic configuration git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2380 b956fd51-792f-4845-bead-9b4dfca2ff2c
* validate microphone settings when leaving the record options and when USDX ↵tobigun2010-05-081-0/+5
| | | | | | | | | is started: - check if a user is assigned to multiple devices. If this is the case either do not leave the record options (if we already are there) or enter the record options (if USDX was started) - the check is performed by calling TAudioInputProcessor.ValidateSettings() git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2346 b956fd51-792f-4845-bead-9b4dfca2ff2c
* - Fix for "Wrong mouse position after screen-resize" bug reported here ↵tobigun2010-05-021-2/+8
| | | | | | | | (http://forum.ultra-star.de/viewtopic.php?f=65&t=7768&p=57151#p57151) - Note: Screen.w and Screen.h are not updated after a resize as SDL_SetVideoMode is not called on windows on a resize event. Previously SDL_SetVideoMode invalidated all OpenGL textures resulting in most textures white. Using SDL_SetVideoMode at a resize seems to work now at least with SDL 1.2.14 and Win7. Maybe we should switch it on again. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2328 b956fd51-792f-4845-bead-9b4dfca2ff2c
* added Finalize3D finalization as opponent for Initialize3D and for a clean ↵tobigun2010-04-251-15/+7
| | | | | | finalization git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2307 b956fd51-792f-4845-bead-9b4dfca2ff2c
* - port theme detection code from UIni to UThemeswhiteshark02010-04-151-3/+9
| | | | | | | | | - load new value DefaultSkin from themefiles - load value Color (skins default color) from skinfiles - use default skin and color on first start - use default skin and color on theme/skin change git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2241 b956fd51-792f-4845-bead-9b4dfca2ff2c
* cleanup of code, which has never been used from start. Part 2.k-m_schindler2010-02-221-11/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2143 b956fd51-792f-4845-bead-9b4dfca2ff2c
* changing variables to more local usagek-m_schindler2010-02-221-20/+21
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2141 b956fd51-792f-4845-bead-9b4dfca2ff2c
* some changes to fps limiter,whiteshark02010-02-221-4/+7
| | | | | | dependency to old UTime stuff removed git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2139 b956fd51-792f-4845-bead-9b4dfca2ff2c
* fix software cursor w/ screens = 2whiteshark02010-01-251-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2096 b956fd51-792f-4845-bead-9b4dfca2ff2c
* removed some old commented stuffwhiteshark02010-01-251-14/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2095 b956fd51-792f-4845-bead-9b4dfca2ff2c
* forgotten updates from last commit againwhiteshark02010-01-121-7/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2082 b956fd51-792f-4845-bead-9b4dfca2ff2c
* deleted leftovers from old plugin system and party modewhiteshark02010-01-121-1/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2080 b956fd51-792f-4845-bead-9b4dfca2ff2c
* merged lua into trunks_alexander2010-01-121-7/+36
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2071 b956fd51-792f-4845-bead-9b4dfca2ff2c
* fixed this f11 thing canni mentionedwhiteshark02009-11-241-2/+7
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1959 b956fd51-792f-4845-bead-9b4dfca2ff2c
* refuse keyboard and mouse input when fading from screen to screenwhiteshark02009-11-241-57/+65
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1956 b956fd51-792f-4845-bead-9b4dfca2ff2c
* prevent key input from being sent to the screen that is fading out, send it ↵whiteshark02009-11-171-1/+1
| | | | | | to the screen that is fading in instead. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1946 b956fd51-792f-4845-bead-9b4dfca2ff2c
* merged unicode branch (r1931) into trunks_alexander2009-11-091-10/+22
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1939 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Language option fix:tobigun2009-07-261-6/+0
| | | | | | | - Never assume an order of the files returned by FindFirst/Next(). This will not work on linux as the order is random. - That is also the reason why the default theme on linux is random (usdx uses the first theme returned by FindFirst(). This is not fixed yet. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1923 b956fd51-792f-4845-bead-9b4dfca2ff2c
* - Commented delay of error.log in mainloop (error-log is no longer generated ↵b_krueger2009-07-181-2/+2
| | | | | | | | | without any error) - If an old 1.01 Ultrastar.db exists, it will no longer deleted on startup, it will be converted into the new 1.1 schema --> added new column in us_songs: rating. This will allow to rate songs in upcoming versions git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1847 b956fd51-792f-4845-bead-9b4dfca2ff2c
* cosmeticsk-m_schindler2009-06-041-10/+12
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1800 b956fd51-792f-4845-bead-9b4dfca2ff2c
* merged (experimental) mouse support patch by d0ccrazywhiteshark02009-05-311-21/+55
| | | | | | | | | | | some changes to patch - implemented software cursor (texturable) - option to turn of mouse support or switch between hardware and software cursor - hide software cursor if there is no mouse activity for 5 seconds - soft fade in and out for software cursor - some test cursor-textures for deluxe theme (mog pls change these horible looking images) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1789 b956fd51-792f-4845-bead-9b4dfca2ff2c
* moved TLyricsState from UMusic to UBeatTimerwhiteshark02009-05-211-0/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1752 b956fd51-792f-4845-bead-9b4dfca2ff2c
* New plugin mode reverted (will be moved to a branch afterwards).tobigun2009-03-211-7/+1
| | | | | | Party mode might work again (untested). This might break linux compatibility. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1641 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Cosmeticsk-m_schindler2009-03-081-14/+17
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1630 b956fd51-792f-4845-bead-9b4dfca2ff2c
* removed some unused units.k-m_schindler2009-03-071-29/+23
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1629 b956fd51-792f-4845-bead-9b4dfca2ff2c
* final cleanup of Umain. Creation of UNotek-m_schindler2009-03-071-520/+7
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1627 b956fd51-792f-4845-bead-9b4dfca2ff2c
* unclutter Umain: ConversionFileName moved to UScreenEditConvertk-m_schindler2009-03-071-2/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1626 b956fd51-792f-4845-bead-9b4dfca2ff2c
* unclutter UMain.pas. Create UPath.pas. Tests on all platformssvn statussvn ↵k-m_schindler2009-03-071-135/+1
| | | | | | status git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1625 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Clear Scores moved to UScreenSing and inlined. Reduce clutter in UMaink-m_schindler2009-03-061-20/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1624 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Some cleanup donewhiteshark02009-02-281-13/+30
| | | | | | | | | | | | moved ScoreFactor to UMusic removed unused field TLines.LyricWidth removed unused field TSong.Category removed some weird and useless code from songloading procedures songloading simplified, commented parts that are difficult to understand some changes to score calculation that assure not more nor less than 10000 Points are gainable. after many tests I could not find any bug in score calculation, at least after these changes. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1610 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Cosmetics: rename WndTitle to WindowTitlek-m_schindler2009-02-281-5/+5
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1607 b956fd51-792f-4845-bead-9b4dfca2ff2c
* formatting onlyk-m_schindler2009-02-251-10/+10
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1605 b956fd51-792f-4845-bead-9b4dfca2ff2c
* serious code change. First trial to fix the score calculations. Please testk-m_schindler2009-02-231-1/+5
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1604 b956fd51-792f-4845-bead-9b4dfca2ff2c
* more formattingk-m_schindler2009-02-231-18/+19
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1603 b956fd51-792f-4845-bead-9b4dfca2ff2c
* - fixed compilation error from r1601canni02009-02-231-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1602 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Formatting as a start :-)k-m_schindler2009-02-231-81/+74
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1601 b956fd51-792f-4845-bead-9b4dfca2ff2c
* some compiler warnings/hints removedtobigun2008-10-281-18/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1485 b956fd51-792f-4845-bead-9b4dfca2ff2c
* MainThreadExec() can be used to delegate execution from e.g. a callback ↵tobigun2008-10-251-4/+45
| | | | | | thread to the main thread. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1468 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Do not use Main try-except block if in debug mode to make debugging easiertobigun2008-10-201-1/+7
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1465 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Fixed effects from last song are drawn in next song, see ↵whiteshark02008-09-281-6/+11
| | | | | | | | http://www.assembla.com/spaces/usdx/tickets/23 ClearScores method updated: this fixes that first sentence of song is awful if a song was sung before git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1426 b956fd51-792f-4845-bead-9b4dfca2ff2c
* gpl header added and property svn:header set to "HeadURL Id"k-m_schindler2008-09-231-0/+25
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1403 b956fd51-792f-4845-bead-9b4dfca2ff2c
* - Windows resources (.rc) reduced to the icontobigun2008-09-121-1/+3
| | | | | | | - Texture resource names are now directly written to resources.inc - Fonts are no resources anymore. They are moved to game/fonts and can be changed to support multiple charsets (until the TTF part is finished). Fonts are registered in fonts/fonts.in git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1367 b956fd51-792f-4845-bead-9b4dfca2ff2c
* -Creation of default directories (songs, covers) working again.tobigun2008-09-111-4/+4
| | | | | | - BSD redefined to FreeBSD git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1365 b956fd51-792f-4845-bead-9b4dfca2ff2c