Skip to content

Commit

Permalink
First commit (as update)
Browse files Browse the repository at this point in the history
- Remove Checkbox class because the builder makes it worthless.
  • Loading branch information
EngineMachiner committed Aug 17, 2024
1 parent 8ee8abb commit cd21a22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ org.gradle.parallel=true

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.20.2
yarn_mappings=1.20.2+build.4
minecraft_version=1.20.3
yarn_mappings=1.20.3+build.1
loader_version=0.15.11
fabric_kotlin_version=1.12.0+kotlin.2.0.10

Expand All @@ -15,4 +15,4 @@ maven_group=com.enginemachiner.harmony
archives_base_name=harmony

# Dependencies
fabric_version=0.91.6+1.20.2
fabric_version=0.91.1+1.20.3
15 changes: 0 additions & 15 deletions src/client/kotlin/com/enginemachiner/harmony/client/Screen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -202,21 +202,6 @@ abstract class Slider(
}


open class Checkbox(

x: Float, y: Float, w: Float, h: Float,

message: String, checked: Boolean, private val init: (Checkbox) -> Unit = {}

) : CheckboxWidget( offset(x, w), offset(y, h), w.toInt(), min( h.toInt(), MAX_HEIGHT ), Text.of(message), checked ), HarmonyWidget {

init { init() }; private fun init() { init(this) }; fun check() { super.onPress() }

private companion object { const val MAX_HEIGHT = 20 }

}


private typealias TextFunction = (RenderText) -> Unit

open class RenderText( private val init: TextFunction = {} ) : HarmonyText {
Expand Down

0 comments on commit cd21a22

Please sign in to comment.