From a51bb430edc6475256ca163fed248fdea8b41781 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 10 Dec 2017 17:00:23 +0100 Subject: [PATCH] hdgraphic: add module to autoconfigure graphics --- modules/hdgraphic.lua | 74 +++++++++++++++++++++++++++++++++++++++++++ pfUI.toc | 1 + 2 files changed, 75 insertions(+) create mode 100644 modules/hdgraphic.lua diff --git a/modules/hdgraphic.lua b/modules/hdgraphic.lua new file mode 100644 index 00000000..fc0d1399 --- /dev/null +++ b/modules/hdgraphic.lua @@ -0,0 +1,74 @@ +pfUI:RegisterModule("hdgraphic", function () + local function HDGraphicSettings() + ConsoleExec("anisotropic 16") + ConsoleExec("detailDoodadAlpha 100") + ConsoleExec("farclip 777") + ConsoleExec("frillDensity 256") + ConsoleExec("gxColorBits 24") + ConsoleExec("gxDepthBits 24") + ConsoleExec("gxRefresh 60") + ConsoleExec("gxMultisample 8") + ConsoleExec("gxMultisampleQuality 1.000000") + ConsoleExec("fullAlpha 1") + ConsoleExec("lod 0") + ConsoleExec("M2Faster 3") + ConsoleExec("Gamma 0.8") + ConsoleExec("lodDist 250") + ConsoleExec("mapObjLightLOD 2") + ConsoleExec("maxLOD 3") + ConsoleExec("nearClip 0.33") + ConsoleExec("particleDensity 1") + ConsoleExec("pixelShaders 1") + ConsoleExec("shadowLevel 0") + ConsoleExec("SmallCull 0.01") + ConsoleExec("trilinear 1") + ConsoleExec("SkyCloudLOD 1") + ConsoleExec("SkySunGlare 1") + ConsoleExec("specular 1") + ConsoleExec("textureLodDist 777") + ConsoleExec("texLodBias -1") + ConsoleExec("trilinear 1") + ConsoleExec("unitDrawDist 300") + ConsoleExec("weatherDensity 3") + ConsoleExec("waterParticulates 1") + ConsoleExec("waterRipples 1") + ConsoleExec("waterSpecular 1") + ConsoleExec("waterWaves 1") + ConsoleExec("ffxDeath 1") + ConsoleExec("ffx 1") + ConsoleExec("ffxRectangle 1") + ConsoleExec("ffxGlow 1") + ConsoleExec("spellEffectLevel 2") + ConsoleExec("occlusion 1") + ConsoleExec("footstepBias 0.125") + ConsoleExec("showfootprints 1") + ConsoleExec("horizonfarclip 777") + ConsoleExec("baseMip 0") + ConsoleExec("waterLOD 0") + ConsoleExec("mapObjOverbright 1") + ConsoleExec("MaxLights 4") + ConsoleExec("DistCull 888") + ConsoleExec("mapShadows 1") + ConsoleExec("doodadAnim 1") + ConsoleExec("showShadow 1") + ConsoleExec("showLowDetail 0") + ConsoleExec("showSimpleDoodads 0") + ConsoleExec("gxTripleBuffer 1") + ConsoleExec("M2UsePixelShaders 1") + ConsoleExec("M2UseZFill 1") + ConsoleExec("M2UseClipPlanes 1") + ConsoleExec("M2UseThreads 1") + ConsoleExec("M2UseShaders 1") + ConsoleExec("M2BatchDoodads 1") + ConsoleExec("bspcache 1") + + ConsoleExec("gxrestart") + local cur, max = GetCurrentResolution(), table.getn({GetScreenResolutions()}) + if cur ~= max then + SetScreenResolution(max) + ReloadUI() + end + end + local txt = T["|cff33ffccBlizzard: \"Graphic Settings\"|r\n\nDo you want me to setup your game to the maximum graphic details?"] + pfUI.firstrun:AddStep("hdgraphic", HDGraphicSettings, nil, txt) +end) diff --git a/pfUI.toc b/pfUI.toc index 9079f9d8..20d7e399 100644 --- a/pfUI.toc +++ b/pfUI.toc @@ -85,3 +85,4 @@ modules\gm.lua modules\mirrortimers.lua modules\socialmod.lua modules\feigndeath.lua +modules\hdgraphic.lua