1
0
forked from mirrors/0ad

Commit Graph

  • d403d750f0 Stop copying color every draw call for every GUI object using colors. elexis 2019-08-19 12:53:58 +00:00
  • 3dfa23cd25 Use a new GetSetting returning a reference instead of GetSettingPointer when the setting is known to exist. elexis 2019-08-19 10:32:29 +00:00
  • 5cfef19a06 Simplify the translations maintenance script. Itms 2019-08-18 18:13:04 +00:00
  • 9985fcf5bd Move GUI<>::FallBackSprite and GUI<>::FallBackColor to CGUIColor::operator|| and CGUISpriteInstance::operator||. elexis 2019-08-18 15:17:49 +00:00
  • 4e55808cf9 Scipio Aeminialus → Scipio Aemilianus Gallaecio 2019-08-18 13:44:57 +00:00
  • e0c739c8d9 Standardized catafalque aura descriptions Gallaecio 2019-08-18 13:25:54 +00:00
  • 491fe12f85 Capitalize classes in team bonus descriptions Gallaecio 2019-08-18 13:12:59 +00:00
  • 4bdea62915 Upgrade into a %(name)s → Upgrade to %(name)s Gallaecio 2019-08-18 13:03:31 +00:00
  • a33857537d Animations re-export "Cavalry Javelinist Rider Animations" Alexandermb 2019-08-17 12:59:57 +00:00
  • c9c82d9daf Use shared_ptr to avoid copying and deleting SGUIImageEffects, 2.5x faster in a benchmark, refs ba0ebd6644. elexis 2019-08-17 11:52:57 +00:00
  • 742f361b2d Improve performance of ScriptInterface::CreateObject from b4626359f5 / D2080 by creating the JSAutoRequest struct only once instead of once per property. elexis 2019-08-17 03:30:07 +00:00
  • ba56191dc2 Move CGUI::GenerateText to CGUIText constructor, CGUI::DrawText to CGUIText::Draw, SGenerateTextImage from CGUI to CGUIText. elexis 2019-08-17 01:32:11 +00:00
  • 24f97d9fd5 Fix unreported glooxwrapper leaks following 61261d14fc, refs #2305. elexis 2019-08-17 00:12:19 +00:00
  • 06c1bca952 Fix issue with two wrong path and name following c2e9e2263a Alexandermb 2019-08-16 21:58:25 +00:00
  • 86c151ebaa PushGuiPage support for passing a function instead of a function name. elexis 2019-08-16 18:46:04 +00:00
  • a06cfe309b Fix miniupnp memory leak from 667537ee49 again after it was fixed in 5876ec38d1 and probably accidentally reverted in 0ba25e9968, refs #2305. elexis 2019-08-16 18:07:23 +00:00
  • 8a4d2a8ccc Fix e83f24e3a6 and 1ff20e8f6a miniupnpc leak and crash on thread exit. wraitii 2019-08-16 17:38:58 +00:00
  • c2e9e2263a Animations re-export "Skeleton and Bodies" Alexandermb 2019-08-16 17:32:21 +00:00
  • 43df94c246 Fix 2a485c5e3b Wind computation - switch to signed integers. wraitii 2019-08-15 17:02:53 +00:00
  • e370c509a6 Small closePage() cleanup for D1684. elexis 2019-08-15 13:29:11 +00:00
  • 2a485c5e3b Wind speed computation rework. wraitii 2019-08-15 11:56:00 +00:00
  • 99f770f911 typography corrections in quotes Gallaecio 2019-08-15 09:24:13 +00:00
  • 1ff20e8f6a pthread -> std::thread (4/7) - Replace pthread in remaining files wraitii 2019-08-15 09:07:16 +00:00
  • 9f42c8d6ae Move manual page values back to the page itself due to a lack of that page being reusable. elexis 2019-08-14 13:55:45 +00:00
  • 6ad90aa1b8 Delete wrongful proxy CGUIManager::GetPreDefinedColor from f0d9806b3f. elexis 2019-08-13 18:00:41 +00:00
  • 02d23d1ff0 Remove useless proxy GUI<int>::ParseColor, refs 31f0e62c83, 2c14d94559. elexis 2019-08-13 15:42:14 +00:00
  • 64e80471d0 Replace JS_THIS_OBJECT and JS::CallReceiver in preparation for SpiderMonkey 49 and 61. elexis 2019-08-13 14:11:43 +00:00
  • 8dc425be5d Update update-workspaces.sh and premake5.lua with the with-system-mozjs45 flag from SpiderMonkey 45 in 64b477625d, refs #4893. elexis 2019-08-13 11:30:46 +00:00
  • a0be131afe Add a better normal map for celt_shield texture Alexandermb 2019-08-13 02:20:01 +00:00
  • 1a06f6ddad Revert the move from territory_pull to special/ in 20da0b727f, introduce template variants to make the feature more versatile, fix missing the Visibility component, refs b05879e151. elexis 2019-08-12 15:16:37 +00:00
  • 0a22f32a21 Fix svn prop lineendings following 332e59bdbe, 8d4d70add9, 5c4d124d2a. elexis 2019-08-12 15:00:47 +00:00
  • 1f421c266a Fix ESLint no-multi-assign, default-case, no-empty, no-shadow warnings, refs #5524. elexis 2019-08-12 14:48:10 +00:00
  • 057d033541 Duplicate clearChatMessages since that ends up being cleaner than having a stray function in gui/common/ that refers to page specific names and logic with a try-catch block to shield against reference errors, refs #3396, 6e80288d30, 25e6136786. elexis 2019-08-12 14:13:04 +00:00
  • a908ce889c Hierarchical Pathfinder - Add Global Regions / Optimise MakeGoalReachable wraitii 2019-08-12 13:19:01 +00:00
  • 07dfacdc67 Fix build without precompiled headers in 107d3d461f. wraitii 2019-08-12 12:56:32 +00:00
  • 353c415072 Hide ESLint no-unmodified-loop-condition hint for a while (const) in gamesetup.js, refs #5524. elexis 2019-08-12 11:53:30 +00:00
  • 214f805f83 Diplomacy and Objectives dialog hotkey. elexis 2019-08-12 10:54:25 +00:00
  • 107d3d461f pthread -> std::thread (3/7) - Replace pthread in other engine files wraitii 2019-08-12 08:16:28 +00:00
  • 8ef8a9de89 Fix VisualActor OOS introduced in rp22586 wraitii 2019-08-12 08:05:04 +00:00
  • 801d5cbe68 Fix checkrefs script following eab4f9fdde (phenotypes), and fix the unit_motion_integration_test map from b637fdbae9. wraitii 2019-08-12 08:03:23 +00:00
  • b152ee155f Fix wrong sele_horse_crest on antiochus the great horse Alexandermb 2019-08-11 17:05:38 +00:00
  • 838889ab12 Split CGUIString.h from GUIText.h, so that one may have the SGUIText implementation in a separate cpp file. elexis 2019-08-10 19:16:52 +00:00
  • d3e56f0f57 Unfriend the 20 IGUIObject classes from CGUI. elexis 2019-08-10 12:51:27 +00:00
  • ca00267faf Referring a path into an island: land → shallow water Gallaecio 2019-08-10 09:28:29 +00:00
  • a905fbbc98 Use NONCOPYABLE for most GUI classes and structs to have the compiler indicate unintended copies, refs 3028551b91 / D2163. elexis 2019-08-10 00:04:17 +00:00
  • 3028551b91 MOVABLE idiom, const CGUI struct maps, in place move construction instead of copying temporaries during CGUI XML loading and GenerateText. elexis 2019-08-09 17:25:55 +00:00
  • f804226b89 Fix failure of the CGUIColor constructor author to call the base constructor following f236c07a56, refs 415939b59b. elexis 2019-08-09 14:54:14 +00:00
  • d192c160de Replace an incorrect math.max() by math.min() in tileclass FeXoR 2019-08-09 10:47:20 +00:00
  • 8bc31ee0d2 English review of cavalry unit references Gallaecio 2019-08-09 05:48:53 +00:00
  • 306d73e864 acropolis → citadel (non-Greek fort), plateau (orography) Gallaecio 2019-08-09 05:37:07 +00:00
  • 9325992232 Revert use of the isRunOnce flag after removal in 64b477625d of compile'n go, refs #4893. Itms 2019-08-08 09:05:42 +00:00
  • 64b477625d Upgrade SpiderMonkey to version 45.0.2, refs #4893. Itms 2019-08-07 22:37:43 +00:00
  • 7876ca7acb Fix gcc 8 compiler warning in FileIo.cpp about truncating use of strncpy [-Wstringop-truncation]. elexis 2019-08-07 15:38:40 +00:00
  • 82f765b4cc Add Profiler2 static const member definition, since the declaration itself is insufficient for const ref access, as revealed in debug builds but not release builds following f89f90d56e and 9965f43067. elexis 2019-08-07 14:45:13 +00:00
  • f89f90d56e Fix Profiler2 gcc 8 compiler warning about possible out-of-bounds array access and replace auto with their type, refs #5294, 3cbe96d24c. elexis 2019-08-07 09:12:28 +00:00
  • eb20fe3626 Replace ScriptInterface ErrorReporter layered hack from 5e15a0279e with proper code, refs f6c1d98c9a. elexis 2019-08-06 22:13:06 +00:00
  • d35f16e4f5 Remove unused texture test helper function obsolete since dee3cb84b5 and ef888367aa that throws a compiler warning with gcc 7 and beyond. elexis 2019-08-06 21:00:36 +00:00
  • b5ff885d6a Improve Roman specific names. Itms 2019-08-06 17:59:09 +00:00
  • df40b88c71 Fix ModIo.cpp gcc 7 compiler warning about extended alignment by using a pointer for hash_state as expected by sodium anyhow, following 833c9f108c, refs #5294. elexis 2019-08-06 13:06:15 +00:00
  • f236c07a56 Call CGUIColor base constructor without C++17 using declaration following 415939b59b. elexis 2019-08-05 20:45:15 +00:00
  • 7e1f959db0 redo 2d57478781, Create a ConfigDB_CreateAndWriteValueToFile function to absorb some duplication in the gui Move two duplicated lines from 7e14a33411 in a function bb 2019-08-05 14:12:55 +00:00
  • 69abe717e3 Fix no-pch build following renderer options refactoring 5c4d124d2a wraitii 2019-08-04 20:08:06 +00:00
  • 6f63f05b8a Fix eab4f9fdde - phenotype tokens were added instead of replacing. wraitii 2019-08-04 09:11:46 +00:00
  • 5c4d124d2a Refactor renderer options. wraitii 2019-08-04 08:28:30 +00:00
  • 2ff8614ce2 Unit Motion - Improve behaviour around obstructions and unreachable goals wraitii 2019-08-04 08:16:09 +00:00
  • 9ece3e7088 Pthread -> std::thread (2/7) - Remove pthread in Profilers wraitii 2019-08-04 08:11:58 +00:00
  • accd72b3c1 Prevent tree leaves from being too bright in water reflections. wraitii 2019-08-04 07:54:13 +00:00
  • c4789fdcc7 Fix missing ShadowMap headers in previous, da4e601d8f. elexis 2019-08-04 05:58:55 +00:00
  • da4e601d8f Move GetDefaultGuiMatrix to a separate file. elexis 2019-08-04 03:52:00 +00:00
  • 85a622b13a Implement IGUIObject settings as a template class and IGUIObject::AddSetting as a template function. elexis 2019-08-04 02:20:08 +00:00
  • 5a1da77ce4 Use IGUIObject::GetSettingPointer and SetSetting instead of accessing the member m_pSetting directly following fd91563f42. elexis 2019-08-04 00:02:56 +00:00
  • cd82b62e25 Fix JSInterface_IGUITextOwner build on VS2015 following 3d07327837 (which works on gcc, clang and Jenkins), reported by minohaka. elexis 2019-08-03 17:52:56 +00:00
  • 11dc5e3901 Texture Update: Judean Slinger wackyserious 2019-08-03 06:18:37 +00:00
  • f64a39c123 Better texture for shield_props (bosses and spinas) Alexandermb 2019-08-03 02:52:40 +00:00
  • 674d60e830 Texture Update: Gallic Naked Fanatic wackyserious 2019-08-02 23:19:39 +00:00
  • 1a388ff401 Texture Update: Scythian Archer wackyserious 2019-08-02 23:07:19 +00:00
  • 8f314fb653 Texture Update: Thracian Peltast wackyserious 2019-08-02 21:38:31 +00:00
  • 3d07327837 Introduce a JSInterface_IGUITextOwner to encapsulate JSI_IGUIObject::getTextSize from 9c5062147a / D844. elexis 2019-08-02 16:55:15 +00:00
  • a1963b8ec2 Separate texture variants in bryastovets helmet as requested by @wackyserious. Alexandermb 2019-08-02 14:21:56 +00:00
  • 007f271a67 Remove unused horse sele_crest and straps_kush_base.xml from wrong folder. Alexandermb 2019-08-02 14:20:12 +00:00
  • df489f2500 Add virtual CreateJSObject to IGUIObject, split from GetJSObject, so that inheriting classes can extend the JS object upon construction, refs #5442, D2136. elexis 2019-08-02 12:18:30 +00:00
  • 2510e1b82e Fix concern raised by checkref mentioned by @elexis Alexandermb 2019-08-02 02:36:01 +00:00
  • 52f2bfae2b Add virtual base initialization missing in 2c47fbd66a. elexis 2019-08-01 23:55:10 +00:00
  • 69ac0b9656 Move CGUIManager::LoadPage to CGUIManager::SGUIPage::LoadPage, because it only operates only on that struct. elexis 2019-08-01 20:48:05 +00:00
  • 2c47fbd66a Pass the GUI page pointer CGUI* to the IGUIObject and derived classes upon construction, instead of on stray cases. elexis 2019-08-01 20:20:24 +00:00
  • eab4f9fdde Replace {gender} by {phenotype} and support this tag in VisualActor. wraitii 2019-08-01 19:14:40 +00:00
  • d7a93c3b35 Update some actors outdated helmets Alexandermb 2019-08-01 17:54:15 +00:00
  • 29b72212fe Update some hero helmets Alexandermb 2019-08-01 17:39:26 +00:00
  • d51adb2674 Fix for broken catafalque_two_wheel.dae following 6d332c0822 Alexandermb 2019-08-01 12:59:24 +00:00
  • 9e1c53c2ff Update athen/cavalry_javelinist_e_r.xml helmet. Alexandermb 2019-08-01 12:34:49 +00:00
  • 12797e14d7 Remove now unused corinthians actors due to new meshes. Alexandermb 2019-07-31 23:00:22 +00:00
  • 8f979756fd Add two missing corinthians after update. Alexandermb 2019-07-31 19:15:16 +00:00
  • 0257f1ca79 Big hellenic helmets update Alexandermb 2019-07-31 18:40:21 +00:00
  • 8d4d70add9 entity template for the juniper tree LordGood 2019-07-29 19:14:08 +00:00
  • a21a21c443 Junipers, grasses, and some flora material edits for broken parallax. Black pines lightened a bit LordGood 2019-07-29 19:04:39 +00:00
  • fee7dba38f Fix Capture oversight in GetBestAttackAgainst in 9fcfdb0324 wraitii 2019-07-29 18:51:50 +00:00
  • 82f1d2718b Remove both copies of the 15-fold copies of the JSI_IGUIObject::getProperty and setProperty setting case handlers following the FromJSVal / ToJSVal template specializations implemented in * JSI_GUIColor in 9be8a560a9 * bool in eec179a9a8 * CGUISeries and CGUIList in 26ae9d430a * primitives in 636c719110 * EAlign and EVAlign in 0834d07462 * ClientArea in b9f3c8557b * CColor in 415939b59b * CGUISpriteInstance 0a7d0ecdde * CPos in d6b93b3be6 elexis 2019-07-29 14:46:29 +00:00
  • d6b93b3be6 Add missing CPos FromJSVal, ToJSVal following 659a9ea57a. elexis 2019-07-29 11:56:11 +00:00
  • 0a7d0ecdde CGUISpriteInstance non-copyable and FromJSVal / ToJSVal. elexis 2019-07-28 22:40:58 +00:00
  • 9fcfdb0324 Improve Attack's GetBestAttackAgainst by only considering attack types that actually can attack the target. wraitii 2019-07-28 14:58:24 +00:00