Add word wrap to help section and cleanup some lines (#5786)

* add word wrap to help section and cleanup some lines

* fix wording
This commit is contained in:
Regisle
2023-04-01 04:55:02 +10:30
committed by GitHub
parent 017829181e
commit 7fc5501c19
2 changed files with 43 additions and 28 deletions

View File

@@ -8,7 +8,7 @@ This file contains a list of shortcuts, and other misc things PoB has
2. Contents
3. FAQ
4. Hotkeys
5. Other
5. Other Notable Things
6. Timeless Jewels
---[FAQ][3]
@@ -43,11 +43,12 @@ E On an equipped item will open it on the edit menu on the right.
Ctrl + LMB Enable / disable gems
Ctrl + RMB Enable / disable gems from Full DPS
Mouse 4/5 Undo / Redo path respectively (in build selection menu)
Shift While scrolling on a slider makes it 5 times faster
Ctrl While scrolling on a slider makes it 5 times slower
Shift While scrolling on a slider makes it 5* times faster
Ctrl While scrolling on a slider makes it 5* times slower
* default of 5, some scroll bars have more or less extreme modifiers to scroll speed
When creating an item either through item creator or adding an item pressing ctrl will add it to the first slot
and ctrl+shift will add it to the second slot e.g. offhand for a weapon.
and ctrl+shift will add it to the second slot e.g. offhand for a weapon.
Passive Tree Shortcuts:
@@ -77,16 +78,15 @@ DEV[Shift Copy export xml to clipboard (hold key during export)]
---[Other Notable Things][5]
Adding ^ and then a number or hex code before text will change the colour of the text, eg ^^77 will make all text white
Adding ^ and then a number or hex code before text will change the colour of the text, eg ^^77 will make the following text white until the next colour marker is set.
---[Timeless Jewels][6]
Timeless jewels modify nodes in a radius based off their seed, the same seed will apply the same changes to the same
small/notable nodes so that is the number you look for. The Conqueror (name on the jewel) only affects the keystone.
Timeless jewels modify nodes in a radius based off their seed, the same seed will apply the same changes to the same small/notable nodes so that is the number you look for. The Conqueror (name on the jewel) only affects the keystone.
Path of Building has an inbuilt tool in the tree tab to search through seeds to find stats that would be good for your build.
Clicking the "Find Timeless Jewel" button on the bottom bar in the tree tab will open a UI that lets you:
Select which jewel type, which jewel socket to search for, and which conqueror from that jewel
Select which jewel type, which jewel socket to search for, and which conqueror from that jewel
("Any" will just use the first conqueror if you add it to build, more on that later)
The filter nodes option makes it only check nodes that are allocated when searching a jewel socket.
@@ -112,7 +112,6 @@ Lastly is the search results box. This will list seeds from the best to the wors
Militant Faith jewels also have the option to select the other mods on the jewel
Advanced tricks:
For Militant Faith, if you don't want any nodes to change, you can just sort by devotion, as unchanged nodes add devotion the ones
with the most devotion will be the ones with unchanged nodes
For Militant Faith, if you don't want any nodes to change, you can just sort by devotion. As unchanged nodes add devotion, the ones with the most devotion will be the ones with unchanged nodes

View File

@@ -919,23 +919,39 @@ function main:OpenAboutPopup()
end
end
local helpList = { }
local helpName = launch.devMode and "../help.txt" or "help.txt"
local helpFile = io.open(helpName, "r")
if helpFile then
helpFile:close()
for line in io.lines(helpName) do
local title, titleIndex = line:match("^---%[(.+)%]%[(.+)%]$")
if title then
if #helpList > 0 then
t_insert(helpList, { height = 10 })
end
t_insert(helpList, { height = 18, "^7"..title.." ("..titleIndex..")" })
else
local dev = line:match("^DEV%[(.+)%]$")
if not ( dev and not launch.devMode ) then
line = (dev or line)
local outdent, indent = line:match("(.*)\t+(.*)")
t_insert(helpList, { height = 12, "^7"..(outdent or line), "^7"..(indent or "") })
do
local helpName = launch.devMode and "../help.txt" or "help.txt"
local helpFile = io.open(helpName, "r")
if helpFile then
helpFile:close()
for line in io.lines(helpName) do
local title, titleIndex = line:match("^---%[(.+)%]%[(.+)%]$")
if title then
if #helpList > 0 then
t_insert(helpList, { height = 10 })
end
t_insert(helpList, { height = 18, "^7"..title.." ("..titleIndex..")" })
else
local dev = line:match("^DEV%[(.+)%]$")
if not ( dev and not launch.devMode ) then
line = (dev or line)
local outdent, indent = line:match("(.*)\t+(.*)")
if outdent then
local indentLines = self:WrapString(indent, 12, 500)
if #indentLines > 1 then
for i, indentLine in ipairs(indentLines) do
t_insert(helpList, { height = 12, (i == 1 and outdent or " "), "^7"..indentLine })
end
else
t_insert(helpList, { height = 12, "^7"..outdent, "^7"..indent })
end
else
local Lines = self:WrapString(line, 12, 610)
for i, line2 in ipairs(Lines) do
t_insert(helpList, { height = 12, "^7"..(i > 1 and " " or "")..line2 })
end
end
end
end
end
end