feat: modules moved and engine moved to submodule
This commit is contained in:
parent
dfb5e645cd
commit
c33d2130cc
5136 changed files with 225275 additions and 64485 deletions
|
|
@ -193,7 +193,7 @@ Point2 TextureProgressBar::unit_val_to_uv(float val) {
|
|||
Point2 p = get_relative_center();
|
||||
|
||||
// Minimal version of Liang-Barsky clipping algorithm
|
||||
float angle = (val * Math_TAU) - Math_PI * 0.5;
|
||||
float angle = (val * Math::TAU) - Math::PI * 0.5;
|
||||
Point2 dir = Vector2(Math::cos(angle), Math::sin(angle));
|
||||
float t1 = 1.0;
|
||||
float cp = 0.0;
|
||||
|
|
@ -429,6 +429,13 @@ void TextureProgressBar::draw_nine_patch_stretched(const Ref<Texture2D> &p_textu
|
|||
|
||||
void TextureProgressBar::_notification(int p_what) {
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_ACCESSIBILITY_UPDATE: {
|
||||
RID ae = get_accessibility_element();
|
||||
ERR_FAIL_COND(ae.is_null());
|
||||
|
||||
DisplayServer::get_singleton()->accessibility_update_set_role(ae, DisplayServer::AccessibilityRole::ROLE_PROGRESS_INDICATOR);
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_DRAW: {
|
||||
if (under.is_valid()) {
|
||||
if (nine_patch_stretch) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue