개인 자료란 (JE)

  서버 커뮤니티

Profile muqhc 대표칭호 없음
Profile

커뮤니티 소통 개발하기 API

Gui 프레임워크 만듦. (feat. 블럭디스플레이)

2023.04.09 조회 수 504 추천 수 3



SkyPanel( //최상위 패널
    SkyPaddingBoxLayout() /*여백레이아웃*/
).skyguiBuild(this) {
    compo.localPoint2 = Point(2.7,0.7) //패널 크기 크기 설정
    
    board(Material.BIRCH_PLANKS.createBlockData()) //블러디스플레이 평면
    aligningBox { //정렬 레이아웃
        label(Component.text("hello world!").color { 0x603B2A }) { //글자 생성
            option.alignment = Alignment.BottomCenter //바닥-가운데로 정렬
            
            entity { backgroundColor = Color.fromARGB(0) }
            compo.scale = Point(2.2,2.3) //글자 확대
        }
    }
    //버튼 생성
    button(onClicked = { event ->
        event.player.sendMessage("hello world") //클릭시 "hello world" 출력
    })
}

Github repository: https://github.com/muqhc/skyguifx




Warning
댓글이 없습니다.

새로운 댓글을 등록해 주세요!

뉴스 및 창작물
/files/thumbnails/841/773/003/262x150.crop.jpg?20240526120908

레드스톤

마인크래프트 노트블록버전 『 봄을 고하다 (春を告げる) 』 [더블옥타브 버전]

노트블럭전문가

2024-05-26

0

/files/thumbnails/712/796/003/262x150.crop.jpg?20240525085438

레드스톤

마인크래프트 노트블록으로 만든 『 봄을 고하다 (春を告げる) 』 1

Sonttukk

2024-05-25

0

/files/thumbnails/268/789/003/262x150.crop.jpg?20240515192032

레드스톤

벌레먹은 돌 빠르게 제거하는 법

GlassesFilm

2024-05-15

0

/files/thumbnails/797/788/003/262x150.crop.jpg?20240515090924

건축

마인크래프트로 구현한 카르카손 보드게임

Warak

2024-05-15

1

/files/thumbnails/487/784/003/262x150.crop.jpg?20240508233607

모드

Windows Borderless 모드에서 악성코드 발견 3

학교가기싫다

2024-05-08

1