Changeset 755 for trunk/Modules
- Timestamp:
- Jan 13, 2014, 8:51:47 PM (11 years ago)
- Location:
- trunk/Modules/Export/files
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Export/files/1.12.1/CzWoW/CzWoW.lua
r746 r755 11 11 CZWOW_EnableSpells=false; 12 12 CZWOW_EnableBooks=true; 13 CZWOW_EnableCreatures= false;13 CZWOW_EnableCreatures=true; 14 14 CZWOW_EnableNPCs=true; 15 15 CZWOW_EnableInterface=true; 16 CZWOW_EnableCombatLog= false;16 CZWOW_EnableCombatLog=true; 17 17 local oldClassTrainerSkillDescription; 18 18 local oldClassTrainerGreetingText; -
trunk/Modules/Export/files/2.4.3/CzWoW/CzWoW.lua
r180 r755 11 11 CZWOW_EnableSpells=false; 12 12 CZWOW_EnableBooks=true; 13 CZWOW_EnableCreatures= false;13 CZWOW_EnableCreatures=true; 14 14 CZWOW_EnableNPCs=true; 15 15 CZWOW_EnableInterface=true; 16 CZWOW_EnableCombatLog= false;16 CZWOW_EnableCombatLog=true; 17 17 local oldClassTrainerSkillDescription; 18 18 local oldClassTrainerGreetingText; … … 278 278 old_QuestFrameDetailPanel_OnShow(); 279 279 if CZWOW_EnableQuests and type(CZWOW_QuestObjective_count)=="number" and type(CZWOW_QuestDescription_count)=="number" then 280 281 282 local questTitle=trim(GetTitleText()); 283 for i=1, CZWOW_QuestTitle_count, 1 do 284 if type(getglobal("CZWOW_QuestTitle_"..i))=="table" and getglobal("CZWOW_QuestTitle_"..i)[questTitle] then 285 QuestTitleText:SetText(prepare(getglobal("CZWOW_QuestTitle_"..i)[questTitle])); 286 end 287 end 288 280 289 local questObjectives=trim(GetObjectiveText()); 281 290 local questDescription=trim(GetQuestText()); … … 296 305 old_QuestFrameProgressPanel_OnShow(); 297 306 if CZWOW_EnableQuests and type(CZWOW_QuestProgress_count)=="number" then 307 local questTitle=trim(GetTitleText()); 308 for i=1, CZWOW_QuestTitle_count, 1 do 309 if type(getglobal("CZWOW_QuestTitle_"..i))=="table" and getglobal("CZWOW_QuestTitle_"..i)[questTitle] then 310 QuestProgressTitleText:SetText(prepare(getglobal("CZWOW_QuestTitle_"..i)[questTitle])); 311 end 312 end 298 313 local text=trim(GetProgressText()); 299 314 for i=1, CZWOW_QuestProgress_count, 1 do … … 308 323 old_QuestFrameRewardPanel_OnShow(); 309 324 if CZWOW_EnableQuests and type(CZWOW_QuestReward_count)=="number" then 325 local questTitle=trim(GetTitleText()); 326 for i=1, CZWOW_QuestTitle_count, 1 do 327 if type(getglobal("CZWOW_QuestTitle_"..i))=="table" and getglobal("CZWOW_QuestTitle_"..i)[questTitle] then 328 QuestRewardTitleText:SetText(prepare(getglobal("CZWOW_QuestTitle_"..i)[questTitle])); 329 end 330 end 310 331 local text=trim(GetRewardText()); 311 332 for i=1, CZWOW_QuestReward_count, 1 do … … 357 378 local cz=NPCTextTranslate(GossipGreetingText:GetText()); 358 379 if cz then GossipGreetingText:SetText(cz) end 380 381 --NEW: 382 for i=1, GossipFrame.buttonIndex, 1 do 383 titleButton=getglobal("GossipTitleButton" .. i); 384 local en=trim(titleButton:GetText()); 385 for i=1, CZWOW_NPCAction_count, 1 do 386 if type(getglobal("CZWOW_NPCAction_"..i))=="table" and getglobal("CZWOW_NPCAction_"..i)[en] then 387 titleButton:SetText(prepare(getglobal("CZWOW_NPCAction_"..i)[en])); 388 GossipResize(titleButton); 389 end 390 end 391 for i=1, CZWOW_QuestTitle_count, 1 do 392 if type(getglobal("CZWOW_QuestTitle_"..i))=="table" and getglobal("CZWOW_QuestTitle_"..i)[en] then 393 titleButton:SetText(prepare(getglobal("CZWOW_QuestTitle_"..i)[en])); 394 end 395 end 396 end 359 397 end; 360 398 361 QuestLog_UpdateQuestDetails=function() 399 QuestLog_UpdateQuestDetails=function() 362 400 old_QuestLog_UpdateQuestDetails(); 363 401 if CZWOW_EnableQuests and type(CZWOW_QuestObjective_count)=="number" and type(CZWOW_QuestDescription_count)=="number" then … … 367 405 questObjectives=trim(questObjectives); 368 406 questDescription=trim(questDescription); 407 local questID = GetQuestLogSelection(); 408 local questTitle=trim(GetQuestLogTitle(questID)); 409 for i=1, CZWOW_QuestTitle_count, 1 do 410 if type(getglobal("CZWOW_QuestTitle_"..i))=="table" and getglobal("CZWOW_QuestTitle_"..i)[questTitle] then 411 QuestLogQuestTitle:SetText(prepare(getglobal("CZWOW_QuestTitle_"..i)[questTitle])); 412 -- QuestLogTitle:SetText(prepare(getglobal("CZWOW_QuestTitle_"..i)[questTitle])); 413 end 414 end 369 415 for i=1, CZWOW_QuestObjective_count, 1 do 370 416 if type(getglobal("CZWOW_QuestObjective_"..i))=="table" and getglobal("CZWOW_QuestObjective_"..i)[questObjectives] then … … 379 425 end; 380 426 end 427 428 local old_QuestLog_Update 429 old_QuestLog_Update = QuestLog_Update; 430 QuestLog_Update=function() 431 old_QuestLog_Update(); 432 local questIndex, questLogTitle, questTitleTag, questNumGroupMates, questNormalText, questHighlight, questCheck; 433 local questLogTitleText, level, questTag, isHeader, isCollapsed, isComplete, color; 434 local numPartyMembers, partyMembersOnQuest, tempWidth, textWidth; 435 for j=1, QUESTS_DISPLAYED, 1 do 436 questIndex = j + FauxScrollFrame_GetOffset(QuestLogListScrollFrame); 437 questLogTitle = getglobal("QuestLogTitle"..questIndex); 438 if (questLogTitle ~= nil) then 439 440 questLogTitle:SetID(questIndex); 441 questLogTitleText, level, questTag, isHeader, isCollapsed, isComplete = GetQuestLogTitle(questIndex); 442 local questTitle=trim(questLogTitleText); 443 for i=1, CZWOW_QuestTitle_count, 1 do 444 if type(getglobal("CZWOW_QuestTitle_"..i))=="table" and getglobal("CZWOW_QuestTitle_"..i)[questTitle] then 445 if questLogTitle then 446 -- QuestLogTitle:SetText(prepare(getglobal("CZWOW_QuestTitle_"..i)[questTitle])); 447 end 448 end 449 end 450 end 451 end 452 end 453
Note:
See TracChangeset
for help on using the changeset viewer.