aboutsummaryrefslogtreecommitdiffstats
path: root/src/base/UMain.pas (unfollow)
Commit message (Collapse)AuthorFilesLines
2010-05-08validate microphone settings when leaving the record options and when USDX ↵tobigun1-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
2010-05-02- Fix for "Wrong mouse position after screen-resize" bug reported here ↵tobigun1-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
2010-04-25added Finalize3D finalization as opponent for Initialize3D and for a clean ↵tobigun1-15/+7
finalization git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2307 b956fd51-792f-4845-bead-9b4dfca2ff2c
2010-04-15- port theme detection code from UIni to UThemeswhiteshark01-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
2010-02-22cleanup of code, which has never been used from start. Part 2.k-m_schindler1-11/+0
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2143 b956fd51-792f-4845-bead-9b4dfca2ff2c
2010-02-22changing variables to more local usagek-m_schindler1-20/+21
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2141 b956fd51-792f-4845-bead-9b4dfca2ff2c
2010-02-22some changes to fps limiter,whiteshark01-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
2010-01-25fix software cursor w/ screens = 2whiteshark01-1/+1
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2096 b956fd51-792f-4845-bead-9b4dfca2ff2c
2010-01-25removed some old commented stuffwhiteshark01-14/+0
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2095 b956fd51-792f-4845-bead-9b4dfca2ff2c
2010-01-12forgotten updates from last commit againwhiteshark01-7/+0
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2082 b956fd51-792f-4845-bead-9b4dfca2ff2c
2010-01-12deleted leftovers from old plugin system and party modewhiteshark01-1/+0
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2080 b956fd51-792f-4845-bead-9b4dfca2ff2c
2010-01-12merged lua into trunks_alexander1-7/+36
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2071 b956fd51-792f-4845-bead-9b4dfca2ff2c
2009-11-24fixed this f11 thing canni mentionedwhiteshark01-2/+7
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1959 b956fd51-792f-4845-bead-9b4dfca2ff2c
2009-11-24refuse keyboard and mouse input when fading from screen to screenwhiteshark01-57/+65
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1956 b956fd51-792f-4845-bead-9b4dfca2ff2c
2009-11-17prevent key input from being sent to the screen that is fading out, send it ↵whiteshark01-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
2009-11-09merged unicode branch (r1931) into trunks_alexander1-10/+22
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1939 b956fd51-792f-4845-bead-9b4dfca2ff2c
2009-07-26Language option fix:tobigun1-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
2009-07-18- Commented delay of error.log in mainloop (error-log is no longer generated ↵b_krueger1-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
2009-06-04cosmeticsk-m_schindler1-10/+12
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1800 b956fd51-792f-4845-bead-9b4dfca2ff2c
2009-05-31merged (experimental) mouse support patch by d0ccrazywhiteshark01-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
2009-05-21moved TLyricsState from UMusic to UBeatTimerwhiteshark01-0/+1
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1752 b956fd51-792f-4845-bead-9b4dfca2ff2c
2009-03-21New plugin mode reverted (will be moved to a branch afterwards).tobigun1-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
2009-03-08Cosmeticsk-m_schindler1-14/+17
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1630 b956fd51-792f-4845-bead-9b4dfca2ff2c
2009-03-07removed some unused units.k-m_schindler1-29/+23
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1629 b956fd51-792f-4845-bead-9b4dfca2ff2c
2009-03-07final cleanup of Umain. Creation of UNotek-m_schindler1-520/+7
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1627 b956fd51-792f-4845-bead-9b4dfca2ff2c
2009-03-07unclutter Umain: ConversionFileName moved to UScreenEditConvertk-m_schindler1-2/+0
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1626 b956fd51-792f-4845-bead-9b4dfca2ff2c
2009-03-07unclutter UMain.pas. Create UPath.pas. Tests on all platformssvn statussvn ↵k-m_schindler1-135/+1
status git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1625 b956fd51-792f-4845-bead-9b4dfca2ff2c
2009-03-06Clear Scores moved to UScreenSing and inlined. Reduce clutter in UMaink-m_schindler1-20/+0
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1624 b956fd51-792f-4845-bead-9b4dfca2ff2c
2009-02-28Some cleanup donewhiteshark01-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
2009-02-28Cosmetics: rename WndTitle to WindowTitlek-m_schindler1-5/+5
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1607 b956fd51-792f-4845-bead-9b4dfca2ff2c
2009-02-25formatting onlyk-m_schindler1-10/+10
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1605 b956fd51-792f-4845-bead-9b4dfca2ff2c
2009-02-23serious code change. First trial to fix the score calculations. Please testk-m_schindler1-1/+5
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1604 b956fd51-792f-4845-bead-9b4dfca2ff2c
2009-02-23more formattingk-m_schindler1-18/+19
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1603 b956fd51-792f-4845-bead-9b4dfca2ff2c
2009-02-23- fixed compilation error from r1601canni01-1/+1
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1602 b956fd51-792f-4845-bead-9b4dfca2ff2c
2009-02-23Formatting as a start :-)k-m_schindler1-81/+74
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1601 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-10-28some compiler warnings/hints removedtobigun1-18/+0
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1485 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-10-25MainThreadExec() can be used to delegate execution from e.g. a callback ↵tobigun1-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
2008-10-20Do not use Main try-except block if in debug mode to make debugging easiertobigun1-1/+7
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1465 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-09-28Fixed effects from last song are drawn in next song, see ↵whiteshark01-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
2008-09-23gpl header added and property svn:header set to "HeadURL Id"k-m_schindler1-0/+25
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1403 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-09-12- Windows resources (.rc) reduced to the icontobigun1-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
2008-09-11-Creation of default directories (songs, covers) working again.tobigun1-4/+4
- BSD redefined to FreeBSD git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1365 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-09-10FreeBSD compatibility fixes:tobigun1-4/+4
- {$IF Defined(Linux)} -> {$IF Defined(Linux) or Defined(BSD)} or {$IF Defined(UNIX)} - config-freebsd.inc added git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1357 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-09-06- fixed out-of-range error. In NewNote() ↵tobigun1-4/+12
CurrentPlayer.Note[CurrentPlayer.HighNote] was accessed although CurrentPlayer.Note is empty (always the case at the beginning of a song). git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1346 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-09-02Moved: The folder classes has been renamed to basemogguh1-0/+0
Updated: ultrastardx.dpr has been changed accordingly git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1339 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-08-27use lower-case paths: songs/themes/languages/etc.tobigun1-13/+13
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1328 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-08-27rename Classes part2k-m_schindler1-0/+0
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1308 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-08-27rename Classes part1k-m_schindler1-0/+0
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1307 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-08-27Reordering of the directories[1]: moving Game/Code to srck-m_schindler1-0/+0
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1302 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-08-15- Support for multiple song/cover paths.tobigun1-51/+110
- Add multiple Song-Paths to the Ini file: [Directories] SongDir1=C:\... SongDir2=D:\... SongDirA=D:\... - UIni.pas clean-up git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1266 b956fd51-792f-4845-bead-9b4dfca2ff2c