Skip to content

Commit

Permalink
readability - make composition of display region more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
Viir committed Jan 23, 2025
1 parent 591898c commit 1cb8360
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ asUITreeNodeWithInheritedOffset :
-> EveOnline.MemoryReading.UITreeNode
-> ChildOfNodeWithDisplayRegion
asUITreeNodeWithInheritedOffset inheritedOffset { occludedRegions } rawNode =
case rawNode |> getDisplayRegionFromDictEntries of
case getDisplayRegionFromDictEntries rawNode of
Nothing ->
ChildWithoutRegion rawNode

Expand All @@ -702,7 +702,11 @@ asUITreeNodeWithInheritedOffset inheritedOffset { occludedRegions } rawNode =
(asUITreeNodeWithDisplayRegion
{ selfDisplayRegion = selfRegion
, totalDisplayRegion =
{ selfRegion | x = inheritedOffset.x + selfRegion.x, y = inheritedOffset.y + selfRegion.y }
{ x = inheritedOffset.x + selfRegion.x
, y = inheritedOffset.y + selfRegion.y
, width = selfRegion.width
, height = selfRegion.height
}
, occludedRegions = occludedRegions
}
rawNode
Expand Down

0 comments on commit 1cb8360

Please sign in to comment.