Skip to content

Commit 67ca997

Browse files
authored
Docs: Fix outdated links (#116)
mostly refactors from club.sk1er to gg.essential
1 parent 22db718 commit 67ca997

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Diff for: docs/components.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ and `stroke-linejoin` attributes from the topmost `<svg>` element in your SVG fi
574574

575575
### PlotComponent
576576

577-
The [PlotComponent](../src/main/kotlin/gg/essential/elementa/components/graph/PlotComponent.kt), as its name implies,
577+
The [PlotComponent](../src/main/kotlin/gg/essential/elementa/components/plot/PlotComponent.kt), as its name implies,
578578
allow the user to display a graph of information to the user. The great thing about this component is that it is
579579
extremely customizable. Everything can be changed, from the axis labels to the line widths. Lets look at a basic
580580
example:
@@ -610,7 +610,7 @@ PlotComponent(
610610
),
611611
xBounds = Bounds(0, 6, 7, showLabels = true, labelColor = Color(101, 101, 101)),
612612
yBounds = Bounds(0, 10, 4, showLabels = true, labelColor = Color(101, 101, 101)),
613-
style = GraphStyle(
613+
style = PlotStyle(
614614
lineStyle = LineStyle(color = Color(1, 165, 82), width = 3f),
615615
padding = Padding(10, 6, 10, 4)
616616
)
@@ -621,8 +621,8 @@ Now we can see the true power of this component -- with only six lines of stylin
621621

622622
![cool graph component](https://i.imgur.com/KqTlBZ1.png)
623623

624-
The `GraphStyle` class has many more configuration options that aren't shown above. Check it out
625-
[here](../src/main/kotlin/gg/essential/elementa/components/graph/GraphStyle.kt)!
624+
The `PlotStyle` class has many more configuration options that aren't shown above. Check it out
625+
[here](../src/main/kotlin/gg/essential/elementa/components/plot/PlotStyle.kt)!
626626

627627
### TreeListComponent
628628

Diff for: docs/whatsnew.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
### TextInput
66

7-
There are two newly updated TextInput components now: [UITextInput](../src/main/kotlin/club/sk1er/elementa/components/input/UITextInput.kt)
8-
and [UIMultilineTextInput](../src/main/kotlin/club/sk1er/elementa/components/input/UIMultilineTextInput.kt). These are
7+
There are two newly updated TextInput components now: [UITextInput](../src/main/kotlin/gg/essential/elementa/components/input/UITextInput.kt)
8+
and [UIMultilineTextInput](../src/main/kotlin/gg/essential/elementa/components/input/UIMultilineTextInput.kt). These are
99
very powerful and useful classes. Read more about these components and how to use them [here](components.md#textinput).
1010

1111
### Inspector
@@ -21,25 +21,25 @@ rich text. Read more about the features of the `MarkdownComponent` and how to us
2121

2222
### PlotComponent
2323

24-
The [PlotComponent](../src/main/kotlin/club/sk1er/elementa/components/graph/PlotComponent.kt) allows the user to
24+
The [PlotComponent](../src/main/kotlin/gg/essential/elementa/components/plot/PlotComponent.kt) allows the user to
2525
display an extremely customizable point graph. Nearly every aspect of the way the graph is drawn is configurable. Read more
2626
[here](components.md#PlotComponent)
2727

2828
### TreeListComponent
2929

30-
Added a new [TreeListComponent](../src/main/kotlin/club/sk1er/elementa/components/TreeListComponent.kt) component. It is
30+
Added a new [TreeListComponent](../src/main/kotlin/gg/essential/elementa/components/TreeListComponent.kt) component. It is
3131
used to display tree-like information in a collapsible list-like hierarchy. This is the primary component used by the
3232
Inspector, and is highly customizable. Read more [here](components.md#TreeListComponent)
3333

3434
### TreeGraphComponent
3535

36-
The [TreeGraphComponent](../src/main/kotlin/club/sk1er/elementa/components/TreeGraphComponent.kt) displays nodes in a
36+
The [TreeGraphComponent](../src/main/kotlin/gg/essential/elementa/components/TreeGraphComponent.kt) displays nodes in a
3737
top-down tree view. It shows the exact same information as the `TreeListComponent` but in a different visual style. Read
3838
more [here](components.md#TreeGraphComponent).
3939

4040
### WindowScreen
4141

42-
There is now a [WindowScreen](../src/main/kotlin/club/sk1er/elementa/WindowScreen.kt) class provided for an easy way to
42+
There is now a [WindowScreen](../src/main/kotlin/gg/essential/elementa/WindowScreen.kt) class provided for an easy way to
4343
avoid the boilerplate of calling all of the `Window` events manually. Rather than extending `GuiScreen` (or `Screen` in
4444
new Minecraft versions) in your GUI class, you can simply extend `WindowScreen` and not worry about overriding the
4545
`keyTyped`, `mouseReleased`, etc. methods. Additionally, it automatically declares a `Window` instance for you to use,
@@ -121,12 +121,12 @@ Pixel constraint now allows changing of the pixel value dynamically with `PixelC
121121

122122
### MousePositionConstraint
123123

124-
Added the [MousePositionConstraint](../src/main/kotlin/club/sk1er/elementa/constraints/MousePositionConstraint.kt) which
124+
Added the [MousePositionConstraint](../src/main/kotlin/gg/essential/elementa/constraints/MousePositionConstraint.kt) which
125125
will evaluate to the current mouse X/Y position.
126126

127127
### ChildBasedRangeConstraint
128128

129-
Added the [ChildBasedRangeConstraint](../src/main/kotlin/club/sk1er/elementa/constraints/ChildBasedConstraints.kt) which
129+
Added the [ChildBasedRangeConstraint](../src/main/kotlin/gg/essential/elementa/constraints/ChildBasedConstraints.kt) which
130130
evaluates the width/height difference between the component's two furthest children. This constraint is tricky to use
131131
as this component and all of its children need to have their X/Y position not reliant on any parental width/height.
132132

0 commit comments

Comments
 (0)