… | |
… | |
350 | } |
350 | } |
351 | |
351 | |
352 | for ([general => ($type->{attr} || {})], @{$type->{section} || []}) { |
352 | for ([general => ($type->{attr} || {})], @{$type->{section} || []}) { |
353 | my ($name, $attr) = @$_; |
353 | my ($name, $attr) = @$_; |
354 | push @section_order, $name; |
354 | push @section_order, $name; |
355 | for (@$attr) { |
355 | for (@{$attr || []}) { |
356 | my ($k, $v) = @$_; |
356 | my ($k, $v) = @$_; |
357 | push @attr_order, $k; |
357 | push @attr_order, $k; |
358 | $section{$name}{$k} ||= $v; |
358 | $section{$name}{$k} ||= $v; |
359 | } |
359 | } |
360 | } |
360 | } |
… | |
… | |
374 | |
374 | |
375 | exists $section{$_} ? [$_ => delete $section{$_}] : (), |
375 | exists $section{$_} ? [$_ => delete $section{$_}] : (), |
376 | @section_order |
376 | @section_order |
377 | ]; |
377 | ]; |
378 | |
378 | |
379 | use PApp::Util; |
|
|
380 | warn PApp::Util::dumpval $attr; |
|
|
381 | |
|
|
382 | $attr |
379 | $attr |
383 | } |
380 | } |
384 | |
381 | |
385 | sub arch_edit_sections { |
382 | sub arch_edit_sections { |
386 | # if (edit_type == IGUIConstants.TILE_EDIT_NONE) |
383 | # if (edit_type == IGUIConstants.TILE_EDIT_NONE) |