Use default parameter values in JORMContext calls where appropriate (#3057)

This commit is contained in:
Max Roncace
2026-01-19 21:18:30 -05:00
committed by GitHub
parent d83996c711
commit 1fba6e13e5
134 changed files with 5369 additions and 6826 deletions
+6 -9
View File
@@ -24,15 +24,12 @@ public:
void default_set() { mAttr = daObjFlag2_c::M_attr; }
void genMessage(JORMContext* ctx) {
ctx->genLabel("§ 旗オブジェパラメータ設定 §\n", 0, 0, NULL, 0xffff, 0xffff, 0x200, 0x18);
ctx->genSlider("重力", &mAttr.mGravity, -10.0f, 0.0f, 0, NULL, 0xffff, 0xffff, 0x200, 0x18);
ctx->genSlider("バネ係数", &mAttr.mSpringCoeeficient, 0.0f, 10.0f, 0, NULL, 0xffff, 0xffff,
0x200, 0x18);
ctx->genSlider("減衰率", &mAttr.mDecayRate, 0.0f, 1.0f, 0, NULL, 0xffff, 0xffff,
0x200, 0x18);
ctx->genSlider("風係数", &mAttr.mWindCoefficient, 0.0f, 100.0f, 0, NULL, 0xffff, 0xffff,
0x200, 0x18);
ctx->genSlider("竜巻", &mAttr.mTornado, 0.0f, 500.0f, 0, NULL, 0xffff, 0xffff, 0x200, 0x18);
ctx->genLabel("§ 旗オブジェパラメータ設定 §\n", 0);
ctx->genSlider("重力", &mAttr.mGravity, -10.0f, 0.0f);
ctx->genSlider("バネ係数", &mAttr.mSpringCoeeficient, 0.0f, 10.0f);
ctx->genSlider("減衰率", &mAttr.mDecayRate, 0.0f, 1.0f);
ctx->genSlider("風係数", &mAttr.mWindCoefficient, 0.0f, 100.0f);
ctx->genSlider("竜巻", &mAttr.mTornado, 0.0f, 500.0f);
}
void ct() {