UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Submit Patch #4763 transfer list popup with cargo list
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "Not determined".
Issue basics
  • Type of issue
    Submit Patch
  • Category
    Scripts (.ufo)
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    3. Normal
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (1)
People involved
Times and dates
  • Posted at
  • Last updated
Issue details
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/patches/636 Item 636] imported from sourceforge.net tracker on 2013-01-28 20:46:59

I try to extend the new transferlist popup with cargo information.
I'm still fighting with the UI Engine, that's why I upload the current state asking help.

-geever
===== Comments Ported from Sourceforge =====

====== geever (2011-12-28 15:40:41) ======

test savegame
====== bayo-fr (2011-12-29 18:29:12) ======

Here a way to fix your problem with script.
I think there is way to fix it by adding a behiour to expend panel according to content, but i dont have time check it and do it.

You also can remove the second "fix main component size" by using something like that

panel
* header
* tree content
* header
* tree content
* ...
* header
* string "Nothing"
* ...

optiontree tr_cargo {
cvar *cvar:none
pos "0 50"
size "472 100"
color "0 .78 0 1"
selectcolor "0 .78 0 1"
lineHeight 18 // <- very important, it override the font height, then we can use it into the script

onViewchange {
// it looks to be useless
//*node:this@viewpos = 0
//*node:this@viewsize = <fullsize>

// fix node size according to elements
*node:this@height = ((<fullsize> * <lineHeight>) + (<padding> * 2))
// fix main component size
*node:this.parent@height = (((<fullsize> * <lineHeight>) + (<padding> * 2)) + <top>)
}
}
====== bayo-fr (2011-12-29 18:31:12) ======

Extend optiontree size according to content
====== bayo-fr (2011-12-29 18:31:53) ======

A upload a .txt file, much more readable :-/
====== geever (2011-12-29 22:15:40) ======

v8 of the patch
====== geever (2011-12-31 02:25:29) ======

Thanks for the help, it&#039;s in master already.
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif